// JavaScript Document

function checkFrameForward()
{
	if(self.location.href.lastIndexOf("http://") > 1)
		return true;
		
	if(self.location.href.indexOf("?") > 0)
	{
		subPage = self.location.href.substring(self.location.href.lastIndexOf("?") + 1, self.location.href.length);
		if(subPage.length > 0)
			self.mainFrame.location.href = subPage;
	}
	if(self.location.href.indexOf("?&") > 0)
	{
		extPage = self.location.href.substring(self.location.href.lastIndexOf("?&") + 2, self.location.href.length);
		self.mainFrame.location.href = "http://"+extPage;
	}
	
	return true;
}

function resizeMe(obj){ 
		docHeight = galleryframe.document.height || galleryframe.document.body.scrollHeight ; 
		obj.style.height = docHeight + 'px';
} 




function checkFrame()
{
	var thisPage = document.URL.substring(document.URL.lastIndexOf("/") + 1,document.URL.length);
	//alert(parent.frames.length+ "    "+thisPage);
	if(parent.frames.length<=1) 
		window.location.href = "/?"+thisPage;
		
	return true;
}

function checkFrameGoHome()
{
	var thisPage = document.URL.substring(document.URL.lastIndexOf("/") + 1,document.URL.length);
	//alert(parent.frames.length+ "    "+thisPage);
	if(parent.frames.length<=1) 
		window.location.href = "http://www.barsenal.de";
		
	return true;
}
