function newsBackgroundOver(srcElement){
	srcElement.style.backgroundImage= "url(../gfx/news_bg_on.gif)";
	srcElement.style.cursor='pointer';
}

function newsBackgroundOut(srcElement){
	srcElement.style.backgroundImage= "url(../gfx/news_bg_off.gif)";
}

function resellerLoginOver(srcElement){
	srcElement.style.backgroundImage= "url(../gfx/Reseller_login_off.gif)";
	srcElement.style.cursor='pointer';
}

function resellerLoginOut(srcElement){
	srcElement.style.backgroundImage= "url(../gfx/Reseller_login_on.gif)";
}

function productBackgroundOver(srcElement){
	srcElement.style.backgroundColor='#445866';
	srcElement.style.backgroundImage='url(gfx/submenu_background_selected.gif)';
	srcElement.style.color='#ffffff';
	srcElement.style.cursor='pointer';
}

function productBackgroundOut(srcElement){
	srcElement.style.backgroundImage='url(gfx/submenu_background.gif)';
	srcElement.style.color='#000000';
}

function overviewBackgroundOver(srcElement1, srcElement2){
	srcElement1.style.backgroundColor='#EDF0F2';
	srcElement1.style.cursor='pointer';
	document.getElementById(srcElement2).style.backgroundColor='#EDF0F2';
}

function overviewBackgroundOut(srcElement1, srcElement2){
	srcElement1.style.backgroundColor='#ffffff';
	document.getElementById(srcElement2).style.backgroundColor='#ffffff';
}

function OpenWindow(strFileURL,targetName,intWidth,intHeight,intLeft,intTop,intResize,intScrollbars) 
{
	objNewWindow = window.open(strFileURL,targetName,"width="+intWidth+",height="+intHeight+",left="+intLeft+",top="+intTop+",resizable="+intResize+",scrollbars="+intScrollbars+",status=0,menubar=0,toolbar=0,location=0,directories=0");
	objNewWindow.focus();
}

function highlightMenu(elementName1){
	document.getElementById(elementName1).style.color='#ffffff';
} 

var randomProductID;

function getRandom(max){
    var ranNum= Math.floor(Math.random()*(max+1));
    
   switch(ranNum){
	case 0:
		randomProductID = 10;
		break;
		
	case 1:
		randomProductID = 12;
		break;
		
	case 2:
		randomProductID = 48;
		break;
   }
       
    return ranNum;
}

function getProductID(){
	return randomProductID;
}

function overviewBackgroundOver1(srcElement1){
	srcElement1.style.backgroundImage='url(gfx/product_overview_over.gif)';
	srcElement1.style.cursor='pointer';
	
}

function overviewBackgroundOut1(srcElement1){
	srcElement1.style.backgroundColor='#ffffff';
	srcElement1.style.backgroundImage='url(gfx/product_overview_background.gif)';
}
