
function initImg() {

}

// ######### Preloading HI Images ##################
showreel_playon = new Image();
showreel_playon.src = "images/showreel_play_hi.gif";

film_playon = new Image();
film_playon.src = "../../images/film_play_hi.gif";

vwon = new Image();
vwon.src = "images/vw_hi.jpg";

sunnyon = new Image();
sunnyon.src = "images/sunny_girl_hi.gif";

welleon = new Image();
welleon.src = "images/welle_hi.gif";

boyon = new Image();
boyon.src = "images/boy_hi.gif";

stilwerkon = new Image();
stilwerkon.src = "images/stilwerk_hi.gif";

inary_caseon = new Image();
inary_caseon.src = "images/inary_button_hi.gif";

shapes_iconon = new Image();
shapes_iconon.src = "images/shapes_icon_hi.jpg";

bdayon = new Image();
bdayon.src = "images/bday_hi.gif";




// ######### Preloading LO Images ##################
showreel_playoff = new Image();
showreel_playoff.src = "images/showreel_play_lo.gif";

film_playoff = new Image();
film_playoff.src = "../../images/film_play_lo.gif";

vwoff = new Image();
vwoff.src = "images/vw_lo.jpg";

sunnyoff = new Image();
sunnyoff.src = "images/sunny_girl_lo.gif";

welleoff = new Image();
welleoff.src = "images/welle_lo.gif";

boyoff = new Image();
boyoff.src = "images/boy_lo.gif";

stilwerkoff = new Image();
stilwerkoff.src = "images/stilwerk_lo.gif";

inary_caseoff = new Image();
inary_caseoff.src = "images/inary_button_lo.gif";

shapes_iconoff = new Image();
shapes_iconoff.src = "images/shapes_icon_lo.jpg";

bdayoff = new Image();
bdayoff.src = "images/bday_lo.gif";



// ######### Image Change Routines ##################

function mouseOvertext(item) {
	document['m_over'].src = eval(item + "_hi.src");
}

function mouseOutdummy () {
	document['m_over'].src = "../images/global/mo_empty.gif";
}

function imgOn(imgName) {
   	document[imgName].src = eval(imgName + "on.src");
}

function imgOff(imgName) {
   	document[imgName].src = eval(imgName + "off.src");
}




// ######### Open Window ##################

function open_sunny_girl(url,w,h) {
        var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",screenX=320,screenY=50");
    fenster.focus();
}


function open_sunny_girl() {
    w = 470;
    h = 470;
    url = "design/sunny_girl.html";
    nav = navigator.userAgent
    
    
    if (navigator.appVersion.indexOf("Mac")>-1) {
    // Exploer auf Mac machen Fenster zu breit
        if (nav.indexOf("Mozilla") > -1 && nav.indexOf("MSIE") > -1) {
	    	w = 470;
			h = 470;
		} else { // Netscape auch, aber nicht so breit
	    	w = 470;
			h = 470;
		}
    }
    var left=(screen.width/2) - (w/2);
    var top=(screen.height/2) - (h/2);
    
   var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",top="+top+",left="+left);
    fenster.focus();
}




function open_showreel(url,w,h) {
        var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",screenX=320,screenY=50");
    fenster.focus();
}


function open_showreel() {
    w = 900;
    h = 600;
    url = "showreel_window.html";
    nav = navigator.userAgent
    
    
    if (navigator.appVersion.indexOf("Mac")>-1) {
    // Exploer auf Mac machen Fenster zu breit
        if (nav.indexOf("Mozilla") > -1 && nav.indexOf("MSIE") > -1) {
	    	w = 900;
			h = 600;
		} else { // Netscape auch, aber nicht so breit
	    	w = 900;
			h = 600;
		}
    }
    var left=(screen.width/2) - (w/2);
    var top=(screen.height/2) - (h/2);
    
   var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",top="+top+",left="+left);
    fenster.focus();
}


function open_film(url,w,h) {
        var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",screenX=320,screenY=50");
    fenster.focus();
}


function open_film() {
    w = 900;
    h = 600;
    url = "film_window.html";
    nav = navigator.userAgent
    
    
    if (navigator.appVersion.indexOf("Mac")>-1) {
    // Exploer auf Mac machen Fenster zu breit
        if (nav.indexOf("Mozilla") > -1 && nav.indexOf("MSIE") > -1) {
	    	w = 900;
			h = 600;
		} else { // Netscape auch, aber nicht so breit
	    	w = 900;
			h = 600;
		}
    }
    var left=(screen.width/2) - (w/2);
    var top=(screen.height/2) - (h/2);
    
   var fenster = window.open(url,"hilfe","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",top="+top+",left="+left);
    fenster.focus();
}