// OPEN NEW SMALLER WINDOW FOR EMAIL>>FRIENDfunction newWin(){	var product = document.passname.prodname.value;	var win_y = screen.availHeight;	var emWindow =window.open("email_friend_new.html?prodname="+product,"Newname","width=550,height=720,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,personalbar=no");    	emWindow.focus()}// EXPAND/COLLAPSE TEXT ON INDEX PAGEfunction toggleMe(a){  var e=document.getElementById(a);  if(!e)return true;  if(e.style.display=="none"){    e.style.display="block"  } else {    e.style.display="none"  }  return true;}// OPEN NEW WINDOWS FOR PRODUCT PAGES  function magWindow(itemNo) {  		explWindow =	window.open("pages/page"+itemNo+".html","Name","width=715,height=720,toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,personalbar=no");    	explWindow.focus()        }// OVERRIDE BROWSER SNIFFINGdocument.writeln('<link rel="stylesheet" href="http://clevercufflinks.com/allstyles_new.css" type="text/css">')// BROWSER SELECTOR SCRIPT FOR CSS HACKSvar css_browser_selector = function() {	var 		ua=navigator.userAgent.toLowerCase(),		is=function(t){ return ua.indexOf(t) != -1; },		h=document.getElementsByTagName('html')[0],		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';	var c=b+os+' js';	h.className += h.className?' '+c:c;}();//  PRODUCT PAGE: CLOSE WINDOW IF CHILD BUT SWITCH TO INDEX PAGE IF VISITOR ARRIVED FROM A PAGE LINK function windXhome (){	var x_win = window.self;	if (window.opener && !window.opener.closed) {		if (window.opener.name = "mainpage") {		x_win = x_win.opener;		x_win.location.href="../index.html";		window.close()  		}  	}  	else { window.location = "../index.html"  		}  }  //  IDENTICAL ROUTINE, BUT TO RETURN TO THE GALLERY PAGEfunction windXgal (){	var x_win = window.self;	if (window.opener && !window.opener.closed) {		if (window.opener.name = "mainpage") {		x_win = x_win.opener;		x_win.location.href="../image_gallery.html";		window.close()  		}  	}  	else { window.location = "../image_gallery.html"  		}  }//  OPEN HELP PAGE IN PARENT WINDOW UNLESS ARRIVING VIA PAGE LINKfunction helpMe (){	var x_win = window.self;	if (window.opener && !window.opener.closed) {		if (window.opener.name = "mainpage") {		x_win = x_win.opener;		x_win.location.href="http://clevercufflinks.com/helpfiles/launcher.html";		window.blur()  		}  	}  	else {  	  	helpWindow =		window.open("http://clevercufflinks.com/helpfiles/launcher.html");		helpWindow.focus()  		}  }// OPEN SECOND WINDOW INSTEAD!!!!!!