var browser=navigator.appName;
var version=navigator.appVersion;
var index=version.lastIndexOf("Safari");




function MakeGris() {
	

	if (browser=="Microsoft Internet Explorer")  {
		document.getElementById('bodyMain').style.filter='progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=30)';
		 
	}

    if (browser=="Netscape") {
	    if (index != - 1) {
			 document.getElementById('bodyMain').style.opacity =0.3;
		}
		else {
			  document.getElementById('bodyMain').style.MozOpacity=0.3	;
		}
	}
	
		 
	
}

 
function RmoveGris() {
	

	if (browser=="Microsoft Internet Explorer")  {
		 
		document.getElementById('bodyMain').style.filter='progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=100)';
	}

    if (browser=="Netscape") {
	    if (index != - 1) {
			document.getElementById('bodyMain').style.opacity =1;
			 
		}
		else {
			document.getElementById('bodyMain').style.MozOpacity=1	;
			 
		}
	}
	
		 
	
}
thepageid='';
oldid='';
function ApplyNow(id,thiswidth,thisheight,pagid){
MakeGris();
thepageid=pagid
//thepageid=pagid
//document.getElementById('newsletterId').classname='Clear';
document.getElementById('newsletterId1').style.display='block';
thisF="roger"
//alert(oldid)
if(oldid!=''){
document.getElementById('tabs'+oldid).className='bgs';
}
document.getElementById('tabs'+pagid).className='bgsselected';

oldid=pagid;
//setTimeout(pass,1500)

//document.getElementById('iframe1').src=id;
//document.getElementById('iframe1').width=thiswidth+'px';
//document.getElementById('iframe1').height=thisheight+'px';

}



function pass(){
	
	window.document[thisF].SetVariable("showflash", 1);
	window.document[thisF].SetVariable("pageid", thepageid);
	//window.document[sid].SetVariable("vid_url", url)

	
	}

function pass1(pageid){
	
		alert(2)
		thisF="roger"
		alert(window.document[thisF])
	window.document[thisF].SetVariable("pageid", 2);
	//window.document[sid].SetVariable("vid_url", url)

	
	}


function HideApplyNow(id){
//alert('roger');	
//	window.document[thisF].SetVariable("showflash",0);

RmoveGris();
document.getElementById('newsletterId1').style.display='none';
//document.getElementById('iframe1').src='_loading.asp';
document.getElementById('tabs'+oldid).className='bgs';

//document.getElementById('newsletterDescId').style.display='none';


}
