function changePage(){
	if(navigator.appName.indexOf("Netscape")>-1) {
		//window.document['theFlashObject'].setVariable('gobackward', "true");
		window.document['theFlashObjectNS'].Play()
	}else{
		document['theFlashObject'].setVariable('gobackward', "true");
		document['theFlashObject'].Play()
	}
}
function jc(){
     if (navigator.appName.indexOf ("Microsoft") !=-1) 
           { return document['theFlashObject'] }
     else  { return window['theFlashObjectNS'] }
}
function lay1(){
     if (navigator.appName.indexOf ("Microsoft") !=-1) 
           { return document['Layer1'] }
     else  { return document['Layer1'] }
}
function lay2(){
     if (navigator.appName.indexOf ("Microsoft") !=-1) 
           { return document['Layer2'] }
     else  { return document['Layer2'] }
}
function lay3(){
     if (navigator.appName.indexOf ("Microsoft") !=-1) 
           { return document['imageLayer'] }
     else  { return document['imageLayer'] }
}
function getRefToDiv(divID) {
    if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    return false;
}
function zchange(strPosition){
	
		var thelayer1=getRefToDiv("Layer1");
		var thelayer2=getRefToDiv("Layer2");
		var theimage=getRefToDiv("imageLayer");

	if(strPosition=="front"){
			thelayer1.style.zIndex=3;
			thelayer2.style.zIndex=2;
			theimage.style.zIndex=1;
	} else {
			thelayer1.style.zIndex=1;
			thelayer2.style.zIndex=3;
			theimage.style.zIndex=2;

	}
}

function resizePage(){
 var w=document.body.clientWidth; 
 var h=document.body.clientHeight;

 var theimage=getRefToDiv("bckImg");
 var imgW=w*0.8;
 var imgH=h*0.8;

 theimage.width=imgW;
 theimage.height=imgH;
 var BWMid = w/2;
 var BHMid = h/2;
 var IWMid = imgW/2;
 var IHMid = imgH/2;
 
 var theimageLayer = getRefToDiv("imageLayer");
	theimageLayer.style.left=parseInt(BWMid-IWMid);
	theimageLayer.style.top=parseInt(BHMid-IHMid);
var theFlashLayer = getRefToDiv("Layer2");
var theFLWidth = (imgW*1);
var theFLHeight = (imgH*1);
	theFlashLayer.style.height=theFLHeight;
	theFlashLayer.style.width=theFLWidth;
var FLLeft =((BWMid-IWMid)+(IWMid-(theFLWidth/2)));
var FLTop =((BHMid-IHMid)+(IHMid-(theFLHeight/2)));
	theFlashLayer.style.left = FLLeft;
	theFlashLayer.style.top = FLTop;
if(navigator.appName.indexOf("Netscape")>-1) {
var theFlashObject = getRefToDiv("theFlashObjectNS");
}else{
var theFlashObject = getRefToDiv("theFlashObject");
}

theFlashObject.width=(theFLWidth);
theFlashObject.height=(theFLHeight);


var theHTMLLayer = getRefToDiv("Layer1");
	theHTMLLayer.style.left = FLLeft + (FLLeft*0.9);
	theHTMLLayer.style.top = FLTop +(FLTop*1.8);
var theiFrame = getRefToDiv("iframeMain");
theiFrame.width=((imgW*0.9)*0.7)
theiFrame.height=((imgH*0.9)*0.5)
theFlashLayer.style.top = 10;//FLTop +(FLTop*0.3);

}