
function OverPageInfo(){
this.overPage=null
this.cookiesLib=new jslt.CokiesLib()
this.emb=new PluginEmbeder()
this.targeturls;
this.targeturl='';
this.target;
this.cookieName="overWasShowedSess"
this.persistent=false
this.setMovie=function(url,target,type,params){
	this.emb.addAttribute("wmode","transparent")
	for(var el in params){
		this.emb.addAttribute(el,params[el])
	}
	this.emb.addVariable("isHTML","true")
	if(url.indexOf("ref=")==-1){
		url+=(url.indexOf("?")>-1?"&":"?")
		url+="ref=OverPageInfo"
	}
	this.targeturl=url
	this.target=target
}
this.assign=function(divNameOrOver,left,top){

	if(this.cookiesLib.readCookie(this.cookieName)=="true" && !this.persistent){
		return;
	}
	if(typeof divNameOrOver =="string"){
		var targetDiv=document.getElementById(divNameOrOver)
		targetDiv.innerHTML="<div id='overPageContentAbsolute' style='position:absolute;top:"+top+"px;left:"+left+"px' >"+this.emb.getHTML()+"</div>"
	}else{
		this.overPage=divNameOrOver
		this.overPage.getLayer().innerHTML=this.emb.getHTML()

	}
}
this.closeMe=function(){
	this.setWasShowed()
	this.hideBN()
}
this.hideBN=function(){
	if(this.overPage!=null){
		this.overPage.hide()

	}else{
		document.getElementById("overPageContentAbsolute").style.clip="rect(0px 0px 0px 0px)"
	}
}
this.clickMe=function(nr){
	this.setWasShowed()
	if (this.target == "_blank" || this.targeturl.indexOf('#')>-1) {
		this.hideBN()
	}
	if(nr!=undefined){
		location=this.targeturls[nr]
		return
	}
	if(this.target=="_blank"){
		var nw=window.open(this.targeturl)
	}else if(this.target=="_top"){
		location=this.targeturl
	}
}
this.setVisited=function(){
	this.setWasShowed()
}
this.setWasShowed=function(){
	this.cookiesLib.setCookie(this.cookieName,"true")
}
}
