- if (this.options.fixedTop) {\r
- var top = this.options.fixedTop;\r
- }\r
- else {\r
- var top = ((window.getHeight() / 2) - ((Number(this.contentObj.height) + this.contentObj.xH) / 2) - this.container.getStyle('border').toInt() + window.getScrollTop()) + this.options.offset.y;\r
- }\r
- var left = ((window.getWidth() / 2) - (this.contentObj.width / 2) - this.container.getStyle('border').toInt()) + this.options.offset.x;\r
- if (top < 0) {\r
- top = 0\r
- }\r
- if (left < 0) {\r
- left = 0\r
+ if(this.tempSRC != this.contentObj.src){\r
+ \r
+ var border = this.container.getStyle('border').toInt();\r
+ \r
+ if (this.options.fixedTop) {\r
+ var top = this.options.fixedTop;\r
+ }\r
+ else {\r
+ var top = ((window.getHeight() / 2) - ((Number(this.contentObj.height) + this.contentObj.xH) / 2) - border + window.getScrollTop()) + this.options.offset.y;\r
+ }\r
+ var left = ((window.getWidth() / 2) - (this.contentObj.width.toInt() / 2) - border) + this.options.offset.x;\r
+ if (top < 0) {\r
+ top = 0\r
+ }\r
+ if (left < 0) {\r
+ left = 0\r
+ }\r
+ \r
+ this.containerEffects.cancel();\r
+ this.containerEffects.start({\r
+ width: this.contentObj.width,\r
+ height: Number(this.contentObj.height) + this.contentObj.xH,\r
+ top: top,\r
+ left: left,\r
+ opacity: 1\r
+ });\r
+ this.iframeEffects.start({\r
+ width: Number(this.contentObj.width) + (border*2),\r
+ height: Number(this.contentObj.height) + this.contentObj.xH + (border*2)\r
+ });\r
+ this.timer = this.showContent.bind(this).delay(500);\r
+ this.tempSRC = this.contentObj.src;\r