// JavaScript Document

var arguments = new Array('p_australia.jpg', 'p_israel.jpg', 'p_usa.jpg', 'about_b_1.jpg', 'about_b_2.jpg', 'about_b_3.jpg', 'about_b_4.jpg', 'about_b_5.jpg', 'about_b_6.jpg', 'about_s_1.jpg', 'about_s_2.jpg', 'about_s_3.jpg', 'about_s_4.jpg', 'about_s_5.jpg', 'about_s_6.jpg', 'about_s_1_on.jpg', 'about_s_2_on.jpg', 'about_s_3_on.jpg', 'about_s_4_on.jpg', 'about_s_5_on.jpg', 'about_s_6_on.jpg','btn_close.gif');
var arImageList = new Array ();
for (var i=0; i < arguments.length; i++) {
    arImageList[i] = new Image();
    arImageList[i].src = arguments[i];
}


function SetFlash() {
	var FlashHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='412' height='530' id='homepage' name='homepage'>"+
					"<param name='movie' value='homepage.swf'>"+
					"<param name='quality' value='high'>"+
					"<param name='wmode' value='opaque'>"+
					"<param name='allowScriptAccess' value='sameDomain' />"+
					"<param name='bgcolor' value='#ffffff' />"+
					"<embed src='homepage.swf' wmode='opaque' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='412' height='530' bgcolor='#ffffff'  swLiveConnect='true' id='homepage' name='homepage' align='middle' allowScriptAccess='sameDomain'></embed>"+
					"</object>";
	document.getElementById("FlashCont").innerHTML = FlashHTML;
}

function switchImg(who, src) {
	img = document.getElementById(who);
 	img.src = src;
}

function rollHilite(who, state) {
	who.src = "img/"+who.id + ((state==1)?"_on.gif":".gif");
}

function SwitchTo(popid, where) {
	var piccont = document.getElementById("pop_"+popid+"_pic");
	var textcont = document.getElementById("pop_"+popid+"_text");
	var picbtn = document.getElementById("pop_"+popid+"_topic");
	var textbtn = document.getElementById("pop_"+popid+"_totext");
	piccont.style.display = ((where=='text')?"none":"block");
	textcont.style.display = ((where=='text')?"block":"none");
	picbtn.className = ((where=='text')?"hidden":"visible");
	textbtn.className = ((where=='text')?"visible":"hidden");
}

function rollOver(who, status) {
	currSrc = who.src;
	if (status == 1) {
		btnName = currSrc.substring(0, currSrc.length-4);
		who.src = btnName + "_on.gif";
//		alert ("switch");
	}	else	{
		btnName = currSrc.substring(0, currSrc.length-7);
		who.src = btnName + ".gif";
	}
}



function switchClass(who, status) {
	if (status == 1) {
		who.className = who.id + "_on";
//		alert ("switch");
	}	else	{
		who.className = who.id + "_off";
	}
}


function switchClassByID(who, status) {
	td = document.getElementById(who);
	if (status == 1) {
		td.className = who + "_on";
//		alert ("switch");
	}	else	{
		td.className = who + "_off";
	}
}


function switchBg(who, ex, stat) {
	
	if (stat == 1) {
		who.style.backgroundImage = "url(img/" + who.id + "_on" + ex +")";
		who.style.cursor = "pointer";
//		alert ("switch");
	}	else	{
		who.style.backgroundImage = "url(img/" + who.id + ex+")";
		who.style.cursor = "default";
	}
}


function changeCursor(who, stat) {
	if (stat == 1) {
		who.style.cursor = "pointer";
	}	else	{
		who.style.cursor = "default";
	}
}


function Click_handle(url)  {
	document.location = url;
	
}

function Hide_Select(stat)  {
	if (stat == 1)	{
		c = "hidden";
	}	else	{
		c = "visible";
	}
	
	document.getElementById("ddlCountries").className = c;
	document.getElementById("selStates").className = c;
	document.getElementById("selSubject").className = c;
	
}

function VideoPop(srcHtml) {
	window.open(srcHtml,"MaxBrenner","directories='no',height=288,width=318,resizeable='no',scrollbars='no',status='no',titlebar='no',toolbar='no'");
}


function init()
{
	document.getElementById("submit").src="img/make_res_arrow.gif";
	document.getElementById("submit").style.width="171px";
	document.getElementById("submit").style.height="70px";
	document.getElementById("OT_submitWrap").style.display="block";
}


