// JavaScript Document
function updateVisual(){
	if(document.getElementById('visuals').className == ''){
	viewMode();
	}
	setTimeout("updateVisual()",1000);
}

function initFlashMod(id,product,flash,width,height,target,name){
	so = new SWFObject(flash, name, width, height, "8", "#ffffff");
		so.addParam("wmode", "transparent");
		so.addVariable("adSet", id);
		so.addVariable("product", product);
   	so.write(target);
}
function showFlashVis(){
	document.getElementById('visuals').className = '';
	for(i=1;i<=tabCount;i++){
		document.getElementById(i).className = '';
		document.getElementById('tab'+i).className = 'tabContInv';
	}
}
function updSize(){
	if(document.getElementById('visuals').className == ''){
		if(document.getElementById('size_temp') && document.getElementById('size_temp').value!='custom'){
			var sizeVal = document.getElementById('size_temp').value;
			h = sizeVal.substring(sizeVal.search(/x/)+1, sizeVal.length);
			w = sizeVal.substring(0, sizeVal.search(/x/));
		}else{
			h = document.getElementById('height_temp').value;
			w = document.getElementById('width_temp').value;
		}
		flashMovie.updSize(h,w);		
	}
	setTimeout("updSize()",1000);
}