var loadedobjects="";
var rootdomain="http://"+window.location.hostname;
var soundSwitchEnabled = false;

/******************** FLASH EXTERNAL SCROLLER **************************/
function printPage(address, isEng){
	ALDR_openBrWindow('printout.php?lang=' + isEng + '&emb=' + address + '&uripath=' + encodeURI(window.location),'ALDAR','width=579,height=800,resizable=yes,scrollbars');
}
function emailThis(page){
	  GB_show('Email this page','emailForm.php?'+page,370,600);
}
function openGreyBox(title,page,h,w){
	  GB_show(title,page,h,w);
}
function ALDR_openBrWindow(theURL,winName,features) { //v2.0
			 window.open(theURL,winName,features);
}
function getFlashMovieObject(movieName) {
	//if (navigator.appName.indexOf("Microsoft") != -1) {
	if (jQuery.browser.mozilla || jQuery.browser.opera || jQuery.browser.safari || jQuery.browser.msie){
		return document[movieName];
	}else{
		return window[movieName];
	}
}


function tanggalinDiKailangan(str){
	if (str.match(/press\_releases/)) str =	str.replace(/(\-[0-9])+/g,"") ;
	else if (str.match(/aldar\_corporate\_video\-/)) str =	str.replace(/(\-[0-9])+/g,"") ;	
	var str = str.replace(/\/+/g,"");
	return str.replace(/\_+/g," ");
}
function showHideDiv(obj){
	$(obj).toggle();	
}