<!--

/*
Everything by Adrian Rowbotham for www.superconductormusic.co.uk
(c)2004: ajr [http://www.ajrdesign.net]
*/



//set status bar text
window.defaultStatus="t e c h n i q u e";






function showFlyers(w,h){
var winl = (screen.width-w)/2;
var wint = ((screen.height-h)/2)-50;
var windowprops = "width=" + w + ",height=" + (h+18) + ",top="+ wint +", left="+ winl;
var popup = window.open('flyers.php','flyers',windowprops);
popup.onLoad = popup.focus();
}


function showMusic(w,h){
var winl = (screen.width-w)/2;
var wint = ((screen.height-h)/2)-50;
var windowprops = "scrollbars=yes,width=" + w + ",height=" + h + ",top="+ wint +", left="+ winl;
var popup = window.open('mp3.php','mp3s',windowprops);
popup.onLoad = popup.focus();
}

function showMembership(w,h){
var winl = (screen.width-w)/2;
var wint = ((screen.height-h)/2)-50;
var windowprops = "scrollbars=yes,width=" + w + ",height=" + (h+18) + ",top="+ wint +", left="+ winl;
var popup = window.open('http://www.sign-up.to/signup.php?fid=773&pid=906','mp3s',windowprops);
popup.onLoad = popup.focus();
}




//------------------------------------------------------------
//write SWF functions

// flash player 6 detection
//check for flash player
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i];
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}




function writeFlash(swf,flashVarString,w,h,bgcolor,menu,mode,q,id){
  if ( MM_FlashCanPlay ) {
     document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
     +'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,67,0" '
     +'width="'+w+'" height="'+h+'" id="'+id+'" align="">'
     +'<param name="movie" value="'+swf+'">'
     +'<param name="menu" value="'+menu+'"> '
     +'<param name="quality" value="'+q+'"> '
     +'<param name="wmode" value="'+mode+'"> '
     +'<param name="bgcolor" value="'+bgcolor+'"> '
     +'<param name="flashvars" value="'+flashVarString+'"> '
     +'<param name="allowScriptAccess" value="sameDomain" />'
     +'<embed src="'+swf+'" flashvars="'+flashVarString+'" menu="'+menu+'" quality="'+q+'" wmode="'+mode+'" '
     +' bgcolor="'+bgcolor+'"  width="'+w+'" height="'+h+'" name="'+swf+'" '
     +' align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" '
     +' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> ');
  } else {
     document.write('<div id="noflashNav"><h1><a href="http://www.technique.org.uk/"><img width="204" height="42" alt="Technique" src="img/technique-logo.gif" /></a></h1><p>Please install <strong><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Macromedia Flash Player</a></strong> version 6 or later to view this website properly.</p>'
     +'NAVIGATE: <a href="index.php">news</a> | <a href="photos.php">photos</a> | '
     +'<a href="profiles.php">profiles</a> | <a href="profiles.php">profiles</a> | '
     +'<a href="history.php">history</a> | <a href="press.php">press</a> | '
     +'<a href="forum.php">forum</a> | <a href="contactus.php">contact us</a> | '
     +'<a href="links.php">links</a></div>');
  }
}





//-->


