if (self == top){
//top.location = location.hash
	anchorPos = top.document.URL.indexOf("#")
	if (anchorPos > 0){
		var anchor = top.document.URL.substring(anchorPos + 1)
		var actionPos = anchor.indexOf("/")
		switch (anchor.substring(0, actionPos)){
			case "product": top.location.replace("http://" + document.domain + anchor.substring(actionPos));break;
			default:top.location.replace("http://" + document.domain + anchor);
		}
		//top.location = "http://" + document.domain + top.document.URL.substring(anchor + 1)
	}
}
// important line
if (top.name != "") top.name = "";


function clipboardCopyURL(value){	
	window.clipboardData.setData('Text', "http://www.polountai.com" + value)
}

function setURL(){
	top.document.title = document.title
	anchor = top.document.URL.indexOf("#")
	if (anchor > 0){
		top.location.replace(top.document.URL.substring(0, anchor) + "#" + this.document.URL.substring(("http://").length + document.domain.length))
	}else{
		top.location.replace(top.location + "#" + this.document.URL.substring(("http://").length + document.domain.length))
	}
}




var descriptionAdStarted
function scrollH(){
	var top = document.body.scrollTop;
	var frameHeight = document.body.offsetHeight
	if (!descriptionAdStarted){
		if (advertisementPosition != null){
			if (top + frameHeight +80 > advertisementPosition.offsetTop){
				if (adIframe.adCell != null){
					descriptionAdStarted = true;
					tempHTML = adIframe.adCell.innerHTML;
					adIframe.adCell.innerHTML = tempHTML;
				}
			}
		}
	}
}

var descriptionAdTimer
function descriptionAdStart(){
	if (!descriptionAdStarted){
		clearTimeout(descriptionAdTimer)
		descriptionAdTimer = setTimeout("scrollH()", 50)
	}
}

