var localhost=0;
var debugOn=1;

var timestamp = "";
if (debugOn) {
	timestamp = "?" + new Date().getTime();
}

if (!localhost){
	var stAppRelPath =   "/NOKIA_COM_1/Web_Applications/nokiaa/StoreLocator/SL_MAP_BASED_LIVE/V2.0/";
}
else{
	var stAppRelPath =   "http://localhost/versions/2.0/commented/";
	//var stAppRelPath =   "http://localhost/versions/2.0/uncommented/";
	//document.write("<script src=\""+stAppRelPath+"js/jquery1.2.6.js\" type=\"text/javascript\"></script>");
	//var stAppRelPath =   "http://localhost/versions/2.0/uncommented/";
}

//Sets the storelocator in White-style mode if the template is a white template and includes JQuery library
if($('#r7-my-template-a').size()>0 || $('#r7-my-template-b').size()>0 || $('#nk-content-wrp').size()>0) 
{
	var whiteSiteStyles = true;
	document.write("<script src=\""+stAppRelPath+"js/jquery1.2.6.js\" type=\"text/javascript\"></script>");
}
else{
	whiteSiteStyles = false;
}

document.write("<script src=\"http://api.maps.ovi.com/jsl.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/maploader.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.custom-combo.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.hoverIntent.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.blockUI.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.cluetip.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/flexcroll.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_func.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_loc.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/config.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_map_ovi.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_init.js" + timestamp + "\" type=\"text/javascript\"></script>");

document.write("<script src=\""+stAppRelPath+"css/css.js" + timestamp + "\" type=\"text/javascript\"></script>");
document.write("<link href=\""+stAppRelPath+"css/style.css" + timestamp + "\" rel=\"stylesheet\" type=\"text/css\" />");
document.write("<link href=\""+stAppRelPath+"css/scroller.css" + timestamp + "\" rel=\"stylesheet\" type=\"text/css\" />");

/*document.write("<script src=\""+stAppRelPath+"js/jquery.hoverIntent.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.block.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/jquery.cluetip.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js/flexcroll.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_func.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_loc.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/config.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_map_ovi.js\" type=\"text/javascript\"></script>");
document.write("<script src=\""+stAppRelPath+"js_st/s_init.js\" type=\"text/javascript\"></script>");

document.write("<script src=\""+stAppRelPath+"css/css.js\" type=\"text/javascript\"></script>");
document.write("<link href=\""+stAppRelPath+"css/style.css\" rel=\"stylesheet\" type=\"text/css\" />");
document.write("<link href=\""+stAppRelPath+"css/scroller.css\" rel=\"stylesheet\" type=\"text/css\" />");
*/

$(document).ready(function() { // defect 9889
	browser = navigator.userAgent;
	if(browser.indexOf('Firefox') != -1) {
		$('#shopname').css({'padding-top':'1px', 'padding-bottom':'4px'});
	}	
});




