function setFlashHeight(newH){
	document.getElementById("flashwrapper").style.height = newH+"px";
	document.getElementById("flashdiv").style.height = newH+"px";		
	document.getElementById("contentflash").height = newH+"px";
}
function openWindow(url,name,width,height,leftPos,topPos,scroll,toolbar){
	if(arguments.length == 2) {
		settings="height="+screen.height+",width="+screen.width+",top=0,left=0,scrollbars=1,toolbar=0"
	} else {
		if(leftPos=="c")	leftPos = (screen.width-width)/2
		if(topPos=="c")		topPos = (screen.height-height)/2
		settings="height="+height+",width="+width+",top="+topPos+",left="+leftPos+",scrollbars=1,toolbar="+toolbar+""
	}
	w = window.open(url,name,settings)
	w.focus();
}
function showDemo() {
	openWindow("Demo.html","demo",360,430,"c","c",0,0)
}
function showPrivacyPolicy() {
	openWindow("http://www.adidas.com/se/shared/legal.asp#Link8","policy",990,500,"c","c",0,0)
}

function addToFavorites() {
	currUrl = document.location.href
	window.external.AddFavorite(currUrl,'adidas running');
}

function checkFavBrowser() {
	if(document.all)
	return true
}

function sendTracking(pageName, pagePath) {
	_hbPageView(pageName, statsPath + pagePath)
	//alert(pageName + "," + (statsPath + pagePath))
	//window.status = pageName + "," + (statsPath + pagePath)
}