/*
Keep iframe in frame script - By connectage.com
*/
// If page is not loaded in iframe
if (top == self) {
	var oldURL = top.location.href;
	// Don't redirect popup pages
	if (oldURL.indexOf("main_page=popup_") == -1) {
		var tmpURL = oldURL.replace("/eshop/", "/");
		var newURL = tmpURL.replace(".php?", ".html?");
//		alert ('old: ' + oldURL + ' new: ' + newURL);
		// Redirect to Joomla page
		top.location.replace(newURL);
	}
}