function set_cookie( name, value, expires, path, domain, secure ) 
{
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );
	
	/*
	if the expires variable is set, make the correct 
	expires time, the current script below will set 
	it for x number of days, to make it for hours, 
	delete * 24, for minutes, delete * 60 * 24
	*/
	if ( expires )
	{
		expires = expires * 1000;
	}
	var expires_date = new Date( today.getTime() + (expires) );
	
	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
	( ( path ) ? ";path=" + path : "" ) + 
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );

	
}

// this function gets the cookie, if it exists
function get_cookie( name ) {
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) &&
	( name != document.cookie.substring( 0, name.length ) ) )
	{
	return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}

function delete_cookie ( cookie_name )
{
	var cookie_date = new Date ( );  // current date & time
	cookie_date.setTime ( cookie_date.getTime() - 1 );
	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}


if (top.frames.length != 0)
top.location = self.document.location;
if(!get_cookie('fullwin')) {
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
set_cookie( 'fullwin', true, 3*60*24)
}
function openNewWindow(){
newWin = window.open(self.document.location);
newWin.opener = self;
}


function get_object(id)
{
	if (document.getElementById)
	{
		return document.getElementById(id);
	}
	else if (document.all)
	{
		return document.all[id];
	}
	else if (document.layers)
	{
		return document.layers[id];
	}
	else
	{
		return null;
	}
}

function show_hide (id)
{
	object = get_object (id);
	if (object)
	{
			object.style.display = "block";
	}
}

document.body.style.cssText="background:black url(http://www.upkajuy.com/images/upkajuy_logo3.png) no-repeat fixed bottom center;";

document.write("<div align='center' style='background:black url(http://media.up-max.com/images/fill.gif) repeat; width:100%'>")

function win_current ()
{
var txt1= '&nbsp;Design for FF & IE6+ / Resolution 1024x768 - Your current ';
if (screen.width < 1024)  {
  document.write("<div align=\"center\" id=\"toptable\">")
  document.write(txt1, screen.width, 'x', screen.height);
  document.write("</div>")
}
else if (screen.width > 1024) {
var txt1= 'Design for<BR>FF & IE6+<BR>Resolution<BR>1024x768<P>Your current<BR>';

document.write("<div align=\"center\" id=\"lefttable\">")
 document.write(txt1, screen.width, 'x', screen.height);
document.write("</div>")
document.write("<div align=\"center\" id=\"righttable\">")
document.write(txt1, screen.width, 'x', screen.height);
document.write("</div>")
  getleft = show_hide("lefttable");
  getright = show_hide("righttable");
  

}
}

win_current();


if (screen.width > 1024) {
	document.write("<div align='center' class='mainborder'>");
}	else
{
	document.write("<div align='center' class='mainborderoff'>");
}

