﻿var teaserViewed="TeaserViewed";var modalWindow={parent:"body",windowId:null,content:null,width:null,height:null,close:function(){$(".modal-window").remove();$(".modal-overlay").remove()},open:function(){var a="";if(document.all&&document.getElementById){if(document.compatMode&&!window.XMLHttpRequest){a+='<iframe src="BLOCKED SCRIPT\'&lt;html&gt;&lt;/html&gt;\';" scrolling="no" frameborder="0" class="modal-overlay"></iframe>'}}a+='<div class="modal-overlay"></div>';a+='<div id="'+this.windowId+'" class="modal-window" style="width:'+this.width+"px; height:"+this.height+"px; margin-top:-"+(this.height/2)+"px; margin-left:-"+(this.width/2)+'px;">';a+=this.content;a+="</div>";$(this.parent).append(a);$(".modal-window").append('<a class="close-window"></a>');$(".close-window").click(function(){modalWindow.close()});$(".modal-overlay").click(function(){modalWindow.close()})}};jQuery.fn.extend({isIE6:function(){if(document.all&&document.getElementById){if(document.compatMode&&!window.XMLHttpRequest){return true}}return false},cssMenu:function(){return this.each(function(){if(jQuery().isIE6()){jQuery(this).find("li").mouseover(function(){jQuery(this).addClass("hover")}).mouseout(function(){jQuery(this).removeClass("hover")})}})},openModal:function(a){return this.each(function(){$this=jQuery(this);var b=$this.attr("href");a=a||{};a.width=a.width||800;a.height=a.height||600;modalWindow.windowId="zoom-modal";modalWindow.width=a.width;modalWindow.height=a.height;modalWindow.content='<iframe width="'+a.width+'" height="'+a.height+'" frameborder="0" scrolling="no" allowtransparency="true" src="'+b+'">&lt/iframe>';modalWindow.open();return false})}});$(document).ready(function(){$teaser=$();$teaser.attr("href","/teaser/teaser.asp");$teaser.openModal({width:833,height:453})});