<!--
function kmm_handlerFunction(description, page, line) {
	return true;
 	//alert("error: " + description + ", page:" + page + ", line:" + line);
}
//window.onerror = kmm_handlerFunction; 
function _frame_kronehit() { if(parent.frames.length==0) window.location.replace("http://www.kronehit.at/index.html?"+window.location.href); };
function _frame_schnapserkoenig() { if(parent.frames.length==0) window.location.replace("http://www.krone.at/schnapserkoenig"); };
function itest(link) { window.open(link,"itest","width=568,height=560,scrollbars=yes,resizable=yes"); };
function diashow(link) { window.open(link,"diashow","width=380,height=480,scrollbars=no,resizable=yes"); };
function hps_diashow(link) { window.open(link,"diashow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=353,height=510,screenX=660,screenY=250"); };
function text_diashow(link) { window.open(link,"diashow","width=600,height=400,scrollbars=no,resizable=yes"); };
function psychotest(link) { window.open(link,"psychotest","width=650,height=490,scrollbars=no,resizable=yes"); };
function fuenf_fehler(link) { window.open (link,"fuenffehler","width=770,height=500,scrollbars=no,resizable=no"); };
function Visitenkarte(nick) { window.open("http://testkronecity.krone.at/hps/client/krone/public/custom/custom_visitenkarte.hbs?nickname="+nick, "visitenkarte", "toolbar=no,menubar=no,scrollbar=auto,resizable=no,width=705,height=400"); };
function fenster(link, breite, hoehe, scroll, groesse)
{
	var now=new Date();
	var milisec=Date.parse(now);
	var win_options="width=" + breite + ",height=" + hoehe + ",scrollbars=" + scroll + ",resizable=" + groesse;
	if(!breite) window.open(link,milisec,"menubar=yes,location=yes,toolbar=yes,width=795,height=550,scrollbars=yes,resizable=yes");
	else window.open (link,milisec,win_options);
};

function SetCookie(name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc >2) ? new Date (argv[2]) : null;
	var path = (argc>3) ? argv[3] : null;
	var domain = (argc>4) ? argv[4] : null;
	var secure = (argc>5) ? argv[5] : false;
	document.cookie = name + "=" + escape(value) +
								((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
								((path == null) ? "" : ("; path=" + path)) +
								((domain == null) ? "" : ("; domain=" + domain)) +
								((secure == true) ? "; secure" : "");

	if(domain && domain != null){
		if(document.domain != domain){
			if(typeof(document.getElementById('kmm_dyn_setcookie')) != 'undefined'){
				if(document.getElementById('kmm_dyn_setcookie')!= null){
					kmm_dyn_setcookie_pfad =  'http://www.' + domain+ '/anwendungen/reg/xmlrpc/set_cookie.php?name=' + name + '&amp;wert=' + value + '';
					document.getElementById('kmm_dyn_setcookie').innerHTML += '<img width="1" height="1" src="' + kmm_dyn_setcookie_pfad + '&amp;type=gif" alt="" />';
					//document.getElementById('kmm_dyn_setcookie').innerHTML += '<iframe src="' + kmm_dyn_setcookie_pfad + '&type=html" width="1" height="1"></iframe>';
					//document.getElementById('kmm_dyn_setcookie_js').src = kmm_dyn_setcookie_pfad + '&type=html';
				}
			}
		}
	}
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;

	while (i < clen) {
		var offset = i + alen;
		if (document.cookie.substring(i, offset) == arg) {
			var iEnd = document.cookie.indexOf (";", offset);
			if (iEnd == -1) {
				iEnd = document.cookie.length;
			}
			return unescape (document.cookie.substring (offset,iEnd));
		}
		i = document.cookie.indexOf (" ", i) +1;
		if (i == 0) break;
	}
	return null;
}
function MultiLinkTo(name)
{
	cnt=0;
	var sortedAr=new Array();
	for(i=1; i<=LinkContAd.length; i++)
	{
		if(LinkContAd[i])
		{
			cnt++;
			sortedAr[cnt]=LinkContAd[i];
		}
	}
	window.open(sortedAr[name]); //OPEN working adserver window
};
function SMSOpen(text, betreiber, nummer)
{
	if(betreiber=="0676") vorwahl=1;
	if(betreiber=="0664") vorwahl=2;
	if(betreiber=="0650") vorwahl=3;
	if(betreiber=="0699") vorwahl=4;
	if(!betreiber) vorwahl=0;
	if(!nummer) nummer="";
	if(!text) text="";
	fenster("http://www2.krone.at/sendung/k/kronlineclub/sms-send.php?text="+text,641,504);
};
function jon_url(url)
{
 if(url.indexOf("http://wcm.krone.at/krone/C15/S63/A0/object_id__6520/hxcms/index.html") != -1)
 {
 	if(parent.links.nacl=='jon') url="http://wcm.krone.at/krone/C00/S89/A0/object_id__6520/hxcms/index.html";
    else url="http://www2.krone.at/anwendungen/jetzt-oder-nie/index_jon.php?http://wcm.krone.at/krone/C00/S89/A0/object_id__6520/hxcms/index.html";
 }
 if(url.indexOf("http://wcm.krone.at/krone/C15/S63/A0/object_id__4669/object_program_id__63/hxcms/index.html") != -1)
 {
 	if(parent.links.nacl=="jon") url="http://wcm.krone.at/krone/C00/S89/A0/object_id__8248/hxcms/index.html";
    else url="http://www2.krone.at/anwendungen/jetzt-oder-nie/index_jon.php?http://wcm.krone.at/krone/C00/S89/A0/object_id__8248/hxcms/index.html";
 }
 if(url=="http://wcm.krone.at/hps/client/krone/public/nicht_allein/frameset.hbs") special_extern("500x720*http://wcm.krone.at/hps/client/krone/public/nicht_allein/frameset.hbs");
 else
 {
 	if(parent.links.nacl=="jon")
 	{
    	if(url.indexOf("?") != -1)
    	{
        	ar=url.split("?");
            url=ar[1];
        }
	    parent.rechts.location.href=url;
    }
    else
    {
    	if(url.indexOf("?") != -1)
    	{
			ar=url.split("?");
            url="http://www2.krone.at/anwendungen/jetzt-oder-nie/index_jon.php?"+ar[1];
        }
        window.open(url);
    }
 }
};

function _getDefaultSite(s)
{
	_s = "Krone.at";
	if(s == "krone.happy-foto.at") { _s = "krone.happy-foto.at"; };
	if(s == "krone.system-shop.at") { _s = "krone.system-shop.at"; };
	if(s == "search.krone.at") { _s = "search.krone.at"; };
	if(s.search("kiosk.de") != -1) { _s = "kiosk.de"; };
	if(s.search("katalogkiosk.krone.at") != -1) { _s = "kiosk.de"; };
	if(s.search("kronehit.at") != -1) { _s = "kronehit.at"; };
	if(s.search("kronecity") != -1) { _s = "kronecity.krone.at"; };
	if(s.search("parship") != -1) { _s = "krone.parship.at"; };
	if(s.search("wuerfelpoker") != -1) { _s = "wuerfelpoker.krone.at"; };
	if(s.search("hanlo") != -1) { _s = "hanlo.krone.at"; };
	if(s.search("xidris") != -1) { _s = "content.xidris.com"; };
	if(s.search("twoday.net") != -1) { _s = "www.twoday.net"; };
	if(s.search("talksalon.krone.at") != -1) { _s = "talksalon.krone.at"; };
	if(s.search("wienforum.krone.at") != -1) { _s = "wienforum.krone.at"; };
	if(s.search("shop.krone.at") != -1) { _s = "shop.krone.at"; };
	if(s.search("krone.tv") != -1) { _s = "www.krone.tv"; };
	if(s.search("kronetv.at") != -1) { _s = "www.kronetv.at"; };
	if(s.search("preisvergleich.krone.at") != -1) { _s = "preisvergleich.krone.at"; };
	if(s.search("arcade.krone.at") != -1) { _s = "arcade.krone.at"; };
	if(s.search("bussiline.krone.at") != -1) { _s = "bussiline.krone.at"; };
	if(s.search("premiumpromotions.krone.at") != -1) { _s = "premiumpromotions.krone.at"; };
	if(s.search("gamepueblo.krone.at") != -1) { _s = "gamepueblo.krone.at"; };
	if(s.search("kronehit.krone.at") != -1) { _s = "kronehit.krone.at"; };

	return _s;
};
function SlashToString(text, count)
{
	var spText=text.split("");
	var text2="";
	for(i=0; i<spText.length; i++)
	{
		text2+=spText[i];
		if(i%count && (i+1) != spText.length) text2+="/";
	}
	return text2;
};
function url_search(site, xurl)
{
	//alert("xurl: " +xurl +" | site: " +site);
	for(i=0, found=false; i<U.length && !found; i++)
	{
		spU=U[i].split("|");
		if(xurl.search(spU[2]) != -1 && spU[4]==site)
		{
			found=true; //RegEx match auf URL & Site
			//alert("xurl: " +xurl +" | site: " +site +", " +i +" => " +U[i]);
		}
	}
	//window.status=url;
	return(spU);
};
function dump(arr,level){
	var dumped_text = "";
	if(!level){
		level = 0;
	}
	var level_padding = "";
	for(var j=0;j<level+1;j++){
		level_padding += "    ";
	}
	if(typeof(arr) == 'object'){
		for(var item in arr) {
			var value = arr[item];
			if(typeof(value) == 'object'){
				dumped_text += level_padding + "'" + item + "' ...\n";
				dumped_text += dump(value,level+1);
	  	}	else {
				dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
	  	}
	 	}
	}	else {
	 	dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
	}
	return dumped_text;
}
//-->