/*
#####################################################
#                                                   #
#   JavaScript by Armin Priesner - Webdesignen.at   #
#   Durchlaufstr. 14/1A/33, A-1200 Wien             #
#   Phone: +43-(0)676-94 60 132                     #
#   Fax: +43-(0)1-971 78 29                         #
#   http://webdesignen.at - office@webdesignen.at   #
#                                                   #
#####################################################
*/

//	Musik starten (Flash)
function musik_start() {
	var themusic=document.getElementById("musik");
	themusic.innerHTML="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='60' HEIGHT='15' id='musik' ALIGN=''><PARAM NAME=movie VALUE='musik.swf'><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#000000><EMBED src='musik.swf' quality=high bgcolor=#000000  WIDTH='60' HEIGHT='15' NAME='musik' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
}

//	Musik beim Videoabspielen stoppen
function musik_stop() {
	var themusic=parent.document.getElementById("musik");
	themusic.innerHTML="<a href='javascript:musik_start()'><img src='images/music_off.gif' alt='' border='0' width='60' height='15'></a>";
}

//	Bilder tauschen
var a, Bild;

var industrial=new Image();
industrial.src="images/industrial.gif";
var industrial_hover=new Image();
industrial_hover.src="images/industrial_hover.gif";

var commercial=new Image();
commercial.src="images/commercial.gif";
var commercial_hover=new Image();
commercial_hover.src="images/commercial_hover.gif";

var documentary=new Image();
documentary.src="images/documentary.gif";
var documentary_hover=new Image();
documentary_hover.src="images/documentary_hover.gif";

var musicclip=new Image();
musicclip.src="images/musicclip.gif";
var musicclip_hover=new Image();
musicclip_hover.src="images/musicclip_hover.gif";

var team=new Image();
team.src="images/team.gif";
var team_hover=new Image();
team_hover.src="images/team_hover.gif";

var contact=new Image();
contact.src="images/contact.gif";
var contact_hover=new Image();
contact_hover.src="images/contact_hover.gif";

var next_off=new Image();
next_off.src="images/buttons/next_off.gif";
var next_on=new Image();
next_on.src="images/buttons/next_on.gif";

var previous_off=new Image();
previous_off.src="images/buttons/previous_off.gif";
var previous_on=new Image();
previous_on.src="images/buttons/previous_on.gif";

var rm_off=new Image();
rm_off.src="images/buttons/rm_off.gif";
var rm_on=new Image();
rm_on.src="images/buttons/rm_on.gif";

var qt_off=new Image();
qt_off.src="images/buttons/qt_off.gif";
var qt_on=new Image();
qt_on.src="images/buttons/qt_on.gif";

var ms_off=new Image();
ms_off.src="images/buttons/ms_off.gif";
var ms_on=new Image();
ms_on.src="images/buttons/ms_on.gif";

function tauschen(a,Bild) {
	document.images[a].src=Bild.src;
}

//	Video-Auswahlformular
function absenden() {
	if((document.video.videoformat.value=="")&&(document.video.videoname.value!="")) { // kein Videoformat gewählt
		alert("Please select a videoformat by clicking on\n\"Realmedia\", \"Quicktime\" or \"Microsoft\".");
		return false;
	}
	else {
		document.video.gesendet.value=true;
		musik_stop();
	}
}

//	Kontaktformular überprüfen
function check() {
	var name=window.document.Kontakt.derName.value;
	var email=window.document.Kontakt.dieMail.value;
	var betreff=window.document.Kontakt.derBetreff.value;
	var anfrage=window.document.Kontakt.dieAnfrage.value;
	if(name=="") {
		alert("Please type in your name!");
		window.document.Kontakt.derName.focus();
		return false;
	}
	var Ergebnis=email.indexOf("@"&&".");
	if((email=="")||(Ergebnis==-1)) {
		alert("Please type in your correct e-mail address!");
		window.document.Kontakt.dieMail.value="";
		window.document.Kontakt.dieMail.focus();
		return false;
	}
	if(betreff=="") {
		alert("Please type in the subject of your request!");
		window.document.Kontakt.derBetreff.focus();
		return false;
	}
	if(anfrage=="") {
		alert("Please type in your request!");
		window.document.Kontakt.dieAnfrage.focus();
		return false;
	}
	document.Kontakt.email.value=email;
	//uebergib_Email(email);
}
function uebergib_Email(email) {
	document.Kontakt.email.value=email;
}
