var newwindow;
function poptastic(url,name,left)
{
	newwindow=window.open(url,name,'height=305,width=229,left=' + left);
	if (window.focus) {newwindow.focus()}
}
function poptastic2(url,name,left)
{
	newwindow=window.open(url,name,'height=345,width=288,left=' + left);
	if (window.focus) {newwindow.focus()}
}
function tutup()
{
	window.close()
}
function getCookie( name )
{
        var nameOfCookie = name + "=";
        var x = 0;
        while ( x <= document.cookie.length )
        {
                var y = (x+nameOfCookie.length);
                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }
                x = document.cookie.indexOf( " ", x ) + 1;
                if ( x == 0 )
                        break;
        }
        return "";
}
//showhide
function showHide (id,ident,tot_id) {
	for (i=1;i<=tot_id;i++) {
		document.getElementById(id + i).style.display = 'none';
		document.getElementById('txt'+id + i).style.display = 'none';
	}
	document.getElementById(id + ident).style.display = '';
	document.getElementById('txt'+id + ident).style.display = '';
	hide('selectgame');
}

function hide( targetId ){
 if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.visibility = "hidden";
	}
}

function show( targetId ){
 if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.visibility = "visible";
	}
}

/*window.addEvent('domready', function(){
	{
		
		
		featuredcontentslider.init({
								   
		id: "slider1",  //id of main slider DIV
		contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
		toc: "markup",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
		nextprev: ["", ""],  //labels for "prev" and "next" links. Set to "" to hide.
		revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
		enablefade: [true, 0.1],  //[true/false, fadedegree]
		autorotate: [true, 3000],  //[true/false, pausetime]
		onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
			//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
			//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
			}
		})
				
			
	}
			
	//autoslidingtabs = new AutoSlidingTabs('eventframebtn', 'eventwrapimage', {autoSlideDelay: 2});
	// you can use one of these to selectively stop the user from changing to certain panes
	//autoslidingtabs.addEvent('change', function(event) {
		//event.cancel = true;
	//});

}); 
*/