
	function changeStage(size){

		$("#stage").css("height",size+"px");
		$("#flashcontent_stage").attr("height",size);
	}

	function flashLink(link){
	
		if ((link == "/") || (link == "") || (link == undefined)){
			//document.window.refresh();
			document.location.href = "http://www.suewag.de";
		}else{
			document.location.href = link;
		}
	}

        function thisMovie(movieName) {
            if (navigator.appName.indexOf("Microsoft") != -1) {
                return window[movieName];
             } else {
                return document[movieName];
             }
         }

        function sendToActionScript(str) {
            thisMovie("accelachart").sendToActionScript(value);
        }

	function checkSession(){
		var session = new Array();
		if ($.cookie('zip') != null){
			session.push($.cookie('zip')); 
		}

		if ($.cookie('city') != null){
var cookieValue = $.cookie('city');

if(cookieValue.length>2) {
var length = cookieValue.length;
if ((cookieValue.substring(0,1)=='"') && (cookieValue.substring(length-1,length )=='"')) {
cookieValue = cookieValue.substring(1,length-1);
}
} 

var unescapedCookieValue =atob(cookieValue );
			session.push(unescapedCookieValue); 
		}
		
		thisMovie("flashcontent_stage").sendToActionScript(session);

	}

	function updateSession(sc){
		$.cookie('zip', sc[0]);
		$.cookie('city', btoa(sc[1]));
	}
