/*
 * Highlight Product On Roll Over
 */

function highLightRow(targetEl) {
    targetEl.style.background="#fcdddd";
}
function dehighLightRow(targetEl) {
    if(targetEl.className=="odd" || targetEl.className=="firstCol odd"){
        targetEl.style.background="#ffffff";
    }else{
        targetEl.style.background="";
    }
}

function highLightRowGrey(targetEl) {
    targetEl.style.background="#f1f1f1";
}
function dehighLightRowGrey(targetEl) {
    targetEl.style.background="#ffffff";
}

function leapTo (link) {
	var new_url=link;
	if (  (new_url != "")  &&  (new_url != null)  ){
	  parent.window.location=new_url;
	} else {
	   alert("\nYou must make a selection.");
	}
}

function popupSendToFriend()
{
	var url = 'http://www.flightcentre.com.au/webapp/wcs/stores/servlet/FCLSendToFriendView?langId=-1&storeId=10102&catalogId=10101&currentUrl=' + window.location.href;
	newwindow=window.open(url,'name','top=100,height=400,width=385,resizable=yes');
	if (window.focus) {
		newwindow.focus();
	}
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
