<!--
startList = function() {
	if (document.all && document.getElementById) {
		menuItems = document.getElementById("main_nav").getElementsByTagName("li");
 
		for (i=0; i<menuItems.length; i++) {
			// alert(menuItems[i].className + " " + menuItems[i].className.indexOf("active"));
			if( menuItems[i].className.indexOf("active") < 0 ) {
				menuItems[i].onmouseover = function() {
					this.className += " over";
				}
				menuItems[i].onmouseout = function() {
					this.className = this.className.replace(new RegExp(" over\\b"), "");
				}
			}
		}
	}
}


function flashWrite(url,w,h,id,bg,vars,win){

	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	document.write(flashStr);

}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWin(theURL,W,H,X,Y, wname) {

	if(X==null)X=Math.ceil((window.screen.width-W)/ 2)
	if(Y==null)Y=Math.ceil((window.screen.height-H)/ 2)
	var s=",scrollbars=no, width="+W+",height="+H;
	if(wname=="announce"){s=",scrollbars=yes,width="+W+",height="+H;}

	CWIN=window.open(theURL,wname,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no"+s,true);
	CWIN.moveTo(Math.ceil(X),Math.ceil(Y))
	CWIN.focus();
}  


var NewImg = ["./images/clients_01.gif",
				  "./images/clients_02.gif",
				  "./images/clients.png"];
var ImgNum = 0;  
var ImgLength = NewImg.length-1;
var delay = 3000;  
var lock = false;
var run;


var NewImg_main = ["./images/solar-LEDs.png",
				   "./images/3d-scanner.png",
				   "./images/rf-components.png",	
				   "./images/manhole-system.png",
				   "./images/touch-screen-LCD.png",
				   "./images/e-bike-battery.gif",
				   "./images/portable_megaphone.gif",
				   "./images/kaishot_main.gif",	
				   "./images/taut_wire_fences.gif",
				   "./images/anti-counterfeit_device.gif",				  
				   "./images/fiber_optic_adapters.gif",
				    "./images/IP_network_camera.gif",
				  "./images/lcd_tv.gif",
				  "./images/portable_dvr.gif",
				  "./images/dvr_kpro.gif",
				  "./images/virtual_fence.gif"];

var url = [0];
url.push("./products/energy/solar-powered-led-lights.php") ; 
url.push("./products/detectors/3d-scanner.php") ; 
url.push("./products/communications/rf-components.php") ; 
url.push("./products/surveillance/manhole-cover-security.php") ; 
url.push("./products/communications/touchscreen-lcd-monitor.php");
url.push("./products/energy/high-performance-lithium-polymer-bike-battery.php") ;
url.push("./products/communications/portable_megaphone.php") ;
url.push("./products/surveillance/mobile_wireless_dvr.php") ;
url.push("./products/detectors/taut_wire_fence.php");
url.push("./products/detectors/anti-counterfeiting_device.php");
url.push("./products/communications/fiber_optic_adapter.php");
url.push("./products/surveillance/ip_camera.php") ; 
url.push("./products/communications/lcd_tv.php") ; 
url.push("./products/surveillance/portable_dvr.php") ; 
url.push("./products/surveillance/digital_video_audio_recorder.php") ; 
url.push("./products/detectors/virtual_fence.php");


var ImgNum_main = 0;  
var ImgLength_main = NewImg_main.length-1;
var delay_main = 6000;  
var lock_main = false ; 
var run_main;


function chgImg(direction) {
  if (document.images) {
	ImgNum += direction;
	if (ImgNum > ImgLength) {
	  ImgNum = 0;
	}
	if (ImgNum < 0) {
	  ImgNum = ImgLength;
	}
	

	
	if( navigator.appName.indexOf("Microsoft") > -1 ){ 
		
		document.slideshow.style.filter="blendTrans(duration=2)";
		document.slideshow.style.filter="blendTrans(duration=CrossFadeDuration)";	
		document.slideshow.filters.blendTrans.apply();
		document.slideshow.src=NewImg[ImgNum];
		
	} else { 
		document.slideshow.style.filter="blendTrans(duration=2)";
		document.slideshow.src=NewImg[ImgNum];
		//document.slideshow.style.filter="blendTrans(duration=2)";
		//document.slideshow.style.filter="blendTrans(duration=CrossFadeDuration)";	
		document.slideshow.filters.blendTrans.apply();
		
	}
	
	document.slideshow.filters.blendTrans.play();
  }
}


function chgImg_main(direction) {
  if (document.images) {
	ImgNum_main += direction;
	if (ImgNum_main > ImgLength_main) {
	  ImgNum_main = 0;
	}
	if (ImgNum_main < 0) {
	  ImgNum_main = ImgLength_main;
	}
	
	document.images.slideshow_main.style.cursor = "pointer";
	
	if( navigator.appName.indexOf("Microsoft") > -1 ){ 
	
		document.slideshow_main.style.filter="blendTrans(duration=2)";
		document.slideshow_main.style.filter="blendTrans(duration=CrossFadeDuration)";	
		document.slideshow_main.filters.blendTrans.apply();
		document.slideshow_main.src=NewImg_main[ImgNum_main];
		
	} else { 
		document.slideshow_main.style.filter="blendTrans(duration=2)";
		document.slideshow_main.src=NewImg_main[ImgNum_main];
		//document.slideshow.style.filter="blendTrans(duration=2)";
		//document.slideshow.style.filter="blendTrans(duration=CrossFadeDuration)";	
		document.slideshow_main.filters.blendTrans.apply();
		
	} 

	document.slideshow_main.filters.blendTrans.play();
	
	document.images.slideshow_main.onclick= function(){
	    location.href = url[ImgNum_main+1]; 
    }
  }
}

function clients_init() {
  if (lock) {
	window.clearInterval(run);
  } else {
	run = setInterval("chgImg(1)", delay);
  }
  
  if (lock_main) { 
	window.clearInterval(run_main);
  } else {
	run_main = setInterval("chgImg_main(1)", delay_main);
  }
  
  lock=!lock;
  lock_main =! lock_main; 
}

function onMouseoverMain() { 
	window.clearInterval(run_main);
}

function onMouseoutMain() { 
	run_main = setInterval("chgImg_main(1)", delay_main);
}

function setPreviewBox(e) { 
 	var e = e || window.event; 
	
	document.getElementById('preview').style.left = e.clientX+ document.body.scrollLeft + 20 + 'px';   
	document.getElementById('preview').style.top = e.clientY  + document.body.scrollTop + 'px';
} 
  
function showPreview(content1, content2) { 
	window.clearInterval(run);
	
	var text; 
		if (document.slideshow.src == "http://www.uskoreahotlink.com/images/clients_01.gif") { 
			text = content1 ; 
		} else {
			text = content2 ; 
		} 
		
		document.getElementById('preview').innerHTML = text   ; 
		//document.getElementById('company_profile').style.visibility = 'visible';  
		document.getElementById('preview').style.visibility = 'visible';  
		  

} 
  
function hidePreview() { 
	document.getElementById('preview').innerHTML = ''; 
	//document.getElementById('company_profile').style.visibility = 'hidden';  
	document.getElementById('preview').style.visibility = 'hidden'; 
	run = setInterval("chgImg(1)", delay);
} 

function gotoProduct(url1, url2) { 

	if (document.slideshow.src == "http://www.uskoreahotlink.com/images/clients_01.gif") { 
		location.href =  url1 ; 
	} else {
		location.href =  url2 ; 
	} 

} 


function change_tab(no, tabs) { 
	for(i=1; i<=tabs; i++) {
		if(i==no) { 
			document.getElementById("ali_"+i).style.color = '#037ec3';
			document.getElementById("li_"+i).style.backgroundImage='url(/images/tab_pps_on_01.gif)';
			document.getElementById("tab_"+i).style.display = '';  
			
		} else { 
			document.getElementById("li_"+i).style.backgroundImage='url(/images/tab_pps_off_01.gif)';
			document.getElementById("ali_"+i).style.color = '#333333';
			document.getElementById("tab_"+i).style.display = 'none';
		} 
	} 
} 

function validateForm(form){
	var retval;
	retval = false; 

	if(form.first_name.value==''){
		alert("Please enter a first name");
		form.first_name.focus();
	} else if(form.last_name.value==''){
		alert("Please enter a last name");
		form.last_name.focus();
	} else if(form.company.value==''){
		alert("Please enter a company");
		form.company.focus();
	} else if(form.email.value==''){
		alert("Please enter a valid email address");
		form.email.focus();
	}  else if(form.phone.value==''){
		alert("Please enter a valid phone number (i.e. xxx-xxx-xxxx or 123-456-7890 x12345)");
		form.phone.focus();		
	}   else {
		retval = true;
	}

	return retval;
}

	
-->