



//----layerdrag

var ie=document.all;
var nn6=document.getElementById&&!document.all;
var isdrag=false;
var x,y;
var dobj;

function movemouse(e)
{
  if (isdrag)
  {
    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x;
    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y;
    return false;
  }
}
function selectmouse(e){
		var fobj       = nn6 ? e.target : event.srcElement;
		var topelement = nn6 ? "HTML" : "BODY";
		while (fobj.tagName != topelement && fobj.className != "dragme")
  {
    fobj = nn6 ? fobj.parentNode : fobj.parentElement;
  }
  if (fobj.className=="dragme")
  {
    isdrag = true;
    dobj = fobj;
    tx = parseInt(dobj.style.left+0);
    ty = parseInt(dobj.style.top+0);
    x = nn6 ? e.clientX : event.clientX;
    y = nn6 ? e.clientY : event.clientY;
    document.onmousemove=movemouse;
    return false;
  }
}
document.onmousedown=selectmouse;
document.onmouseout=new Function("isdrag=false");
document.onmouseup=new Function("isdrag=false");






function cPOPleft() {
  	document.getElementById("xeditf").style.visibility="hidden";
    parent.window.xinfxo.location = "../../images/loading-page.gif";
}

function recPagex(thepage) {
	  document.getElementById("dxmenuf").style.visibility="visible";
	  parent.dxmenuinfo.location.href = thepage;
	}
function ceditPagex() {
  	document.getElementById("dxmenuf").style.visibility="hidden";
}
 function SUBstrip() {
 	 document.getElementById("topSUBstrip").innerHTML = "";
	}

var cssmenuids=["cssmenu1"] 
var csssubmenuoffset=-1

function createcssmenu2(){
for (var i=0; i<cssmenuids.length; i++){
  var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
    	var spanref=document.createElement("span")
			spanref.className="arrowdiv"
			spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    	ultags[t].parentNode.onmouseover=function(){
					this.style.zIndex=100
    	this.getElementsByTagName("ul")[0].style.visibility="visible"
					this.getElementsByTagName("ul")[0].style.zIndex=0
    	}
    	ultags[t].parentNode.onmouseout=function(){
					this.style.zIndex=0
					this.getElementsByTagName("ul")[0].style.visibility="hidden"
					this.getElementsByTagName("ul")[0].style.zIndex=100
    	}
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)

 function addToFavorites() {

		 window.external.AddFavorite(urlAddress,pageName)

 }

function xXtmenux(thepage) {
		document.all.xeditf.style.visibility="visible";
 		document.getElementById("xeditf").style.width = "440";
 		document.getElementById("xeditf").style.height= "320";
		document.getElementById("xeditf").style.right = "340" ;
		document.getElementById("xeditf").style.top = "180" ;
		parent.xinfxo.location.href = thepage;


	}
	
	function solar_MSGPOP(lang, thepage) {
		document.all.xeditf.style.visibility="visible";
 		document.getElementById("xeditf").style.width = "440";
 		document.getElementById("xeditf").style.height= "380";
		document.getElementById("xeditf").style.right = "24%" ;
		document.getElementById("xeditf").style.top = "210" ;
		
		if (lang) {
		parent.xinfxo.location.href = '../'+thepage;
		} else {
		parent.xinfxo.location.href = thepage;
		
}

	}
	
	
	

    //<![CDATA[
    <!--
    function scrollerObj(name,initH,initW,heightB,widthB,content,initBg,Bg,speed,initFl){
    //**data**//
    this.name=name;
    this.initH=initH;
    this.initW=initW;
    this.heightB=heightB;
    this.widthB=widthB;
    this.content=content;
    this.initBg=initBg;
    this.Bg=Bg;
    this.iniFl=initFl;
    this.speed=parseInt(speed);
    this.timer = name + "Timer";
    this.elem;

    //**methods**//
    this.getElement = getElement;
    this.createLayer=createLayer;
    this.scrollLayer = scrollLayer; 
    this.scrollLoop=scrollLoop;

    //**initiate methods**//

    this.createLayer();
    this.getElement();
    this.scrollLayer();
    }

    //**call this method to stop scrolling**//
    function scrollLoop(s){
    this.speed = s;
    }

    //**pretty obvious**//
    function scrollLayer(){
    if(parseInt(this.elem.style.top)>(this.elem.offsetHeight*(-1))){
        this.elem.style.top = parseInt(this.elem.style.top)-this.speed;
        //alert(parseInt(this.elem.style.top)+"\n"+this.elem.id);
    }
    else {this.elem.style.top = this.initH;}
    }
    //**get the specific dom-expression**//
    function getElement(){
    if(document.getElementById){
        this.elem = document.getElementById(this.name);
        }
    else if (document.all){
    this.elem = document.all[name];
        }
    else if (document.layers){
    this.elem = document.layers[name];

        }
    }
    //**pretty obvious - if NS4 - please upgrade to a standard compliant browser**//

    function createLayer(){
    if(document.getElementById || document.all){
    document.write('<div id="layer'+this.name+'" style="position:relative;overflow:hidden;float:'+this.initFl+';background-color:#ffffff;border:0px solid black;width:'+this.initW+'px;height:'+this.initH+'px;" onMouseover="'+this.name+'.scrollLoop(0)" onMouseout="'+this.name+'.scrollLoop('+this.speed+')">');
    document.write('<div id="'+this.name+'" style="position:absolute;top:'+this.initH+'px;left:0px;border:0px solid black;width:'+this.widthB+'px;height:'+this.heightB+'px;background-color:#'+this.Bg+'">');
    document.write(this.content);
    document.write('<\/div><\/div>');}
    else if(document.layers){
        document.write('<ilayer name="'+this.name+'" bgcolor="#'+this.Bg+'" width="'+this.widthB+'" height="'+this.heightB+'">'+this.content+'<\/ilayer>');
        return;
    }

    if(this.scrollLayer){

      this.timer = setInterval(this.name+'.scrollLayer()','30');
    }
    }

    //-->
    //]]>


if (document.images)
{
img1 = new Image();
img1.src = "images/BG_Popoleft";
}







function hideBlock(theTable){
var theTable = theTable ; 
if (document.getElementById(theTable).style.display == 'none') 
{         document.getElementById(theTable).style.display = 'block';   

  }
else    { 
document.getElementById(theTable).style.display = 'none';    
    }}



var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-150>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}

function clearup(){
if (window.temp2)
clearInterval(temp2)
}

function cleardown(){
if (window.temp)
clearInterval(temp)
}
