

function pdfwin(pdfname)
{
 var url="pdf2.asp?pdfname=" + pdfname;
	NewWindow=window.open(url,"pdfwin", "width=650,height=600,toolbar=no,location=no,top=20,left=20,directories=no,scrollbars=yes, resizable=yes");
NewWindow.focus(); void(0);
}

function diswin(){
window.open ("disclaimer.htm",'picwin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=500,dependent=no,screenX=20,screenY=20');
}
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_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 MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v;
	if (v=="visible"){
	obj.display='block';}
	else{obj.display='none';}}
}
function MM_findObj(n, d) { //v4.0
  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&&id.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function dealer(selObj){ //v3.0
location.replace("dealer_enquiry.asp?co=" + selObj.options[selObj.selectedIndex].value);
}
function bigpic(thepic)
{url="bigpic.asp?pic="+thepic;
window.open(url, "", "width=400px, height=400px, scrollbars=yes,resizable=yes");

}
function bigpic2(thepic)
{url="bigpic2.asp?pic="+thepic;
window.open(url, "", "width=400px, height=400px, scrollbars=yes,resizable=yes");
}

function sonywindow()
{url="product-sony.asp";
window.open(url, "", "scrollbars=yes,resizable=yes");

}
function solwin(theswf)
{url="caseswf.asp?swf="+theswf;
window.open(url, "", "width=780px, height=500px, scrollbars=no,resizable=no");
}
function getproduct(parent,s,i)
{
if(s.options[s.selectedIndex].value!="-1")
 { location.replace("product.asp?productid="    +s.options[s.selectedIndex].value);}
 else {
 location.replace("amazon-home.asp");  
 }
}

// Bookmark


function CreateBookmarkLink(url,title) {

 
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }


var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/offshore1.jpg'
theImages[1] = 'images/technical2.jpg'
theImages[2] = 'images/military1.jpg'
theImages[3] = 'images/broadcast1.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
var step=whichImage;

function showImage(){
document.write('<img src="'+theImages[whichImage]+'"  width="556px" height="310px">');
}


function slideit(){
//document.images.slide.src=eval("image"+step+".src")
document.getElementById("slide").innerHTML='<img src="'+theImages[step]+'" border="0" width="556" height="310" />';
//document.write('<img src="'+images[step]+'" border="0" width="175" height="156" />');
if (step<3)
step++
else
step=0
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}


function checkradio()
{
rc="N";
for (i=0;i<document.forms["subscribe"]["r1"].length;i++) {
if (document.forms["subscribe"]["r1"][i].checked) {
rc="Y";
}
}
if (rc=="N")
{
alert("You have not selected a sector of interest"); return false;
}

	}





