var i = 0;
var skip_intro;

function open_window(url) { 
	if(i == 0)	{
		var scroll = 0;
		if(screen.availHeight < 750)	{
			scroll = "1";
		}
		else {
			scroll = "0";
		}

		window.open (url,'Name','height='+ screen.availHeight +',width='+ screen.availWidth +',screenX=0,screenY=0,status=no,toolbar=no,statusbar=no,scrollbars=' + scroll + ',resizable=yes'); 
		skip_intro = window.clearInterval(skip_intro);		
	}
}

function flashWidth() {
	var flwidth = 0;
	if(screen.availWidth < 1000 && screen.availHeight < 700) {
		flwidth = "100%";
	}
	else {
		flwidth = "1000";
	}
	
	return flwidth;
}

function flashIntroH() {
	var item = 0;
	if(screen.availHeight <= 570) {
		item = "350";
	}
	else {
		item = "650";
	}
	
	return item;
}

function flashIntroW() {
	var item = 0;
	if(screen.availHeight <= 570) {
		item = "750";
	}
	else {
		item = "1000";
	}
	
	return item;
}

function selfMax()	{
	self.moveTo(0,0)
	self.resizeTo(screen.availWidth,screen.availHeight)	
}

function loadAutoUrl(sec, url)	{
	skip_intro = window.setInterval("open_window('" + url + "')",sec);
}

function stopAutoUrl(url)	{
	i = 1;
	var scroll = 0;
	if(screen.availHeight < 750)	{
		scroll = "1";
	}
	else {
		scroll = "0";
	}

	window.open (url,'Name','height='+ screen.availHeight +',width='+ screen.availWidth +',screenX=0,screenY=0,status=no,toolbar=no,statusbar=no,scrollbars=' + scroll + ',resizable=yes'); 
}
