/*
 * $Source: /var/lib/cvs/cms/js/frontend.js,v $
 * $Author: rist $
 * $Date: 2005/08/10 12:48:25 $
 * $Revision: 1.15 $
 * */

function openWin2Day(){
window.open('http://www.win2day.at/gaming/WD_guidedtour_popup.html','newwin','width=640,height=480,toolbar=no,location=no,direcories=no,status=yes,menubar=no,resizable=no'); 
}

function openLoungeTHP(){
    window.open('assets/lounge/index_thp.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeTSP(){
    window.open('assets/lounge/index_tsp.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeSCSP(){
    window.open('assets/lounge/index_scsp.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeMAJP(){
    window.open('assets/lounge/index_majp.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeAR(){
    window.open('assets/lounge/index_ar.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeFR(){
    window.open('assets/lounge/index_fr.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeBJ(){
    window.open('assets/lounge/index_bj.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openLoungeMMJP(){
    window.open('assets/lounge/index_mmj.html','lounge', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=1024,height=575');
}

function openAgb(theLang){
	window.open('assets/agb_'+ theLang + '.html','agbs','toolbar=no,scrollbars=yes,width=550,height=400,resizable=no');
}

function openShopHelp(theLang){
	window.open('assets/shophelp_'+ theLang + '.html','shophelp','toolbar=no,scrollbars=yes,width=550,height=400,resizable=no');
}

function openReddog(){
    window.open('assets/spielerklaerungen/reddog.html','spfive', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openEasypoker(){
    window.open('assets/spielerklaerungen/easypoker.html','spsix', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openTropicalstud(){
    window.open('assets/spielerklaerungen/tropicalstud.html','spsix', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openSeveneleven(){
    window.open('assets/spielerklaerungen/seveneleven.html','spseven', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openTexasomaha(){
    window.open('assets/spielerklaerungen/texasomaha.html','speight', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openFortyone(){
    window.open('assets/spielerklaerungen/41.html','spten', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openPuntobanco(){
    window.open('assets/spielerklaerungen/puntobanco.html','spnine', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openGluecksrad(){
    window.open('assets/spielerklaerungen/gluecksrad.html','speleven', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openFrench(){
    window.open('assets/spielerklaerungen/froulette.html','spthree','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openAmerican(){
    window.open('assets/spielerklaerungen/aroulette.html','spthree', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openSlot(){
    window.open('assets/spielerklaerungen/slotmachine_info.html','spone', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openBlackjack(){
    window.open('assets/spielerklaerungen/bj_tutorial.html','sptwo', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openSevencardstud(){
    window.open('assets/spielerklaerungen/sevencardstud.html','spthree', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openSlotStart(){
    window.open('slotmachine_game.aspx','spone', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openAmericanRStart(){
    window.open('aroulette_game.aspx','spthree', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openFrenchRStart(){
    window.open('froulette_game.aspx','spthree', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openParoliStart(){
    window.open('paroli_game.aspx','spthree', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,width=640,height=480');
}

function openFridayStart(){
    window.open('gewinnspiel/Popup.aspx','popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=586,height=490');
}

function openSlideshow(muid, ccbStyle){
	window.open('slideshow.aspx?muid=' + muid + '&ccbStyle=' + ccbStyle, 'Slideshow', 'width=420, height=340, scrollbars=no, status=no, topmargin=0');
    return false;
}

function openSearch(luid) {
		if (document.forms[0].cmsContentSearch.value != '') 
			{
				xx = window.open('assets/empty.html','Search','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=640,height=480');
				xx.location='searchpage.aspx?searchstr=' + encodeURI(document.forms[0].cmsContentSearch.value) + "&luid=" + luid;
				document.forms[0].cmsContentSearch.value = '';
			}
		else {  
			switch(luid)
				{
					case 1:
						alert("Bitte geben Sie einen Suchbegriff ein.");
						break;
					case 2:
						alert("Please enter a search definition.");
						break;
					case 3:
						alert("Inserisca per favore un termine di ricerca.");
						break;
					default:
						alert("Bitte geben Sie einen Suchbegriff ein.");
						break;
				}
			}
	}


// KeyPressFunction start
function KeyPressSearch(buttonName) {
	if (event && event.keyCode == 13)
	{
		if (buttonName == "search_click_button")
		{
			var button=document.getElementById("search_click_button");
			button.click();
			return false;
		}
	}
}
// KeyPressFunction end

function agb(theLang){
	if (theLang == 'd')
	window.location = 'http://www.casinos.at/content.aspx?muid=44f1e9d7-342a-4cde-bed3-9844938891ce';
	if (theLang == 'e')
	window.location = 'http://www.casinos.at/content.aspx?muid=ae4c2f1c-abd4-4eb8-8fb7-b9b91a75b8c9';
	if (theLang == 'i')
	window.location = 'http://www.casinos.at/content.aspx?muid=b5fb5083-8132-4d9b-b821-dacdbe9b673e';
}

function openSend(url){
alert(typeof(url));
    window.open(url,'send_to_a_friend','toolbar=no,scrollbars=yes,width=560,height=200,resizable=no');
    return false;
}

