// JavaScript Document

// Type the number of div containers to randomly display.

/*NumberOfDivsToRandomDisplay = 2;

function DisplayRandomDiv() {
var r = Math.ceil(Math.random() * NumberOfDivsToRandomDisplay);
document.getElementById("launchPadDiv"+r).style.display="block";
}*/


function changeImage(image_name,imgsrc)
{
	
	document[image_name].src = imgsrc;
	
}

function slider()
{
	
	var selectedEffect = 'blind';
	
		var length = arguments.length;
		
		
		for(var i=0; i < length; i++){
			var aliasParam = arguments[i].substring(1);
			
			if(i == 0){
				
				if( document.getElementById(aliasParam).style.display != 'block'){
					$(arguments[i]).show(selectedEffect);
					document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_over.png';
				}else if(document.getElementById(aliasParam).style.display == 'block'){
					$(arguments[i]).hide(selectedEffect);
					document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_normal.png';
				}
			}
			else if( document.getElementById(aliasParam).style.display == 'block' ){
				$(arguments[i]).hide(selectedEffect);
				document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_normal.png';
			}
		}
}

function tabSlider()
{
	
	var selectedEffect = 'blind';
	
		var length = arguments.length;
		
		for(var i=0; i < length; i++){
			var aliasParam = arguments[i].substring(1);
			
			if(i == 0){
				
				if( document.getElementById(aliasParam).style.display != 'block'){
					$(arguments[i]).show(selectedEffect);
				}else if(document.getElementById(aliasParam).style.display == 'block'){
					$(arguments[i]).hide(selectedEffect);
				}
			}
			else if( document.getElementById(aliasParam).style.display == 'block' ){
				$(arguments[i]).hide(selectedEffect);
			}
		}
}

function bottomSlider()
{
	var selectedEffect = 'blind';
	
		var length = arguments.length;
		
		for(var i=0; i < length; i++){
			var aliasParam = arguments[i].substring(1);
			
			if(i == 0){
				if( document.getElementById(aliasParam).style.display == 'none' ){
				$(arguments[i]).show(selectedEffect);
				document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_over.png';
				}else if(document.getElementById(aliasParam).style.display == 'block'){
					if(arguments[i].substring(1) == 'news')
					{
						
						$(arguments[0]).hide(selectedEffect);
						$(arguments[1]).show(selectedEffect);
						document.getElementById(arguments[1].substring(1)+'_img').src = path+'/images/'+arguments[1].substring(1)+'_over.png';
						document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_normal.png';
						break;
					}
					
					}
			}
			else if( document.getElementById(aliasParam).style.display != 'none' ){
				//alert(document.getElementById(aliasParam).style.display);
					
					$(arguments[i]).hide(selectedEffect);
					document.getElementById(arguments[i].substring(1)+'_img').src = path+'/images/'+arguments[i].substring(1)+'_normal.png';
				
			}
			
		}
		
}
/*function HideShow(myVar,image1,image2,image3,image4)
{
	
	var imageName = myVar;
	if (imageName == 'testimonials')
	{
		document[myVar].src = image1;
		document['launchpad'].src = image2;
		document['information'].src = image3;
		document['news'].src = image4;
		scrollerInstanceBuffer.mouseoverBol=0;
	}
	else if(imageName == 'news')
	{
		document[myVar].src = image1;
		document['launchpad'].src = image2;
		document['testimonials'].src = image3;
		document['information'].src = image4;
		
		scrollerInstanceBuffer.mouseoverBol=0;
	}
	else if(imageName == 'launchpad')
	{
		document[myVar].src = image1;
		document['testimonials'].src = image2;
		document['information'].src = image3;
		document['news'].src = image4;
		scrollerInstanceBuffer.mouseoverBol=0;
	}
	else if(imageName == 'information')
	{
		document[myVar].src = image1;
		document['launchpad'].src = image2;
		document['testimonials'].src = image3;
		document['news'].src = image4;
		scrollerInstanceBuffer.mouseoverBol=0;
	}


}*/



//<![CDATA[

//var images=new Array();
//images[0]="images/main1.jpg";
//images[1]="images/main2.jpg";
//images[2]="images/main3.jpg";


//function randomImage() {
//var i=Math.floor(Math.random()*images.length);
//document.getElementById("random").src=images[i];

//}
//onload=randomImage; 

//]]>

