function bioMe(num)

{

	document.getElementByID('bio1').style.display="none";

	document.getElementByID('bio2').style.display="none";

	document.getElementByID('bio3').style.display="none";

	var bioshow = document.getElementByID(num);

	bioshow.style.display="block";

}





var mygallery=new simpleGallery({

	wrapperid: "simplegallery1", //ID of main gallery container,

	dimensions: [342, 278], //width/height of gallery in pixels. Should reflect dimensions of the images exactly

	imagearray: [

		["http://www.cavwins.com/music/img/cwsight_img1.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img2.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img3.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img4.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img5.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img6.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img7.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img8.jpg", "", "", ""],

		["http://www.cavwins.com/music/img/cwsight_img9.jpg", "", "", ""]

	],

	autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]

	persist: false, //remember last viewed slide and recall within same session?

	fadeduration: 500, //transition duration (milliseconds)

	oninit:function(){ //event that fires when gallery has initialized/ ready to run

		//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))

	},

	onslide:function(curslide, i){ //event that fires after each slide is shown

		//Keyword "this": references current gallery instance

		//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)

		//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)

	}

})







function makerequest(serverPage, objID, parameters)

{

	var xmlHttp;

	try

  	{

		// Firefox, Opera 8.0+, Safari

		xmlHttp=new XMLHttpRequest();

	}

	catch (e)

  	{

		// Internet Explorer

		try

    		{

		    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

   		}	

  		catch (e)

    		{

    			try

      			{

				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

      			}

    			catch (e)

      			{

			      alert("Your browser does not support AJAX!");

			      return false;

      			}

    		}

  	}

	

	var obj = document.getElementById(objID);

	xmlHttp.onreadystatechange=function()

    	{

    		if(xmlHttp.readyState==4)

      		{

			if(xmlHttp.status == 200)

			{

	        		obj.innerHTML = xmlHttp.responseText;

			}

			else

			{



			}

      		}

		else

		{

			obj.innerHTML = '<div style="margin: 258px 286px 0px 0px;"><img src="http://cavwins.com/music/img/ajax_loader.gif" border="0"></div>';

		}

    	}

	

	xmlHttp.open("POST", serverPage,true);

	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

	xmlHttp.setRequestHeader("Content-length", parameters.length);

	xmlHttp.setRequestHeader("Connection", "close");

	xmlHttp.send(parameters);



}



function ajaxFunction(serverPage, objID)

{

	var xmlHttp;

	try

  	{

		// Firefox, Opera 8.0+, Safari

		xmlHttp=new XMLHttpRequest();

	}	

	catch (e)

  	{

		// Internet Explorer

		try

    		{

			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

    		}

		catch (e)

    		{

    			try

      			{

				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

      			}

			catch (e)

      			{

				alert("Your browser does not support AJAX!");

				return false;

      			}

    		}

  	}

	

	var obj = document.getElementById(objID);

	xmlHttp.onreadystatechange=function()

    	{

		if(xmlHttp.readyState==4)

      		{

			if(xmlHttp.status == 200)

			{

	        		obj.innerHTML = xmlHttp.responseText;

			}

			else

			{



			}

	        }

		else

		{

			obj.innerHTML = '<div style="margin: 258px 286px 0px 0px;"><img src="http://cavwins.com/music/img/ajax_loader.gif" border="0"></div>';

		}

    	}

	

	xmlHttp.open("POST", serverPage,true);

	xmlHttp.send(null);

}







function get()

{

	ajaxFunction('register.php', 'rightbtm');

	

}

function bioMe(numb)

{

	document.getElementById('bio1').style.display="none";

	document.getElementById('bio2').style.display="none";

	document.getElementById('bio3').style.display="none";

	document.getElementById('bio4').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function soundtext(numb)

{

	document.getElementById('sound2_1').style.display="none";

	document.getElementById('sound2_2').style.display="none";

	document.getElementById('sound2_3').style.display="none";

	document.getElementById('sound2_4').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";	

	if(numb = 'sound2_1')

	{

		document.images[cwhas].src = 'http://cavwins.com/music/img/cwsound_has_hov.png';

	}

	if(numb = 'sound2_2')

	{

		document.images[cwdaru].src = 'http://cavwins.com/music/img/cwsound_daru_hov.png';

	}

	if(numb = 'sound2_3')

	{

		document.images[cwmeg].src = 'http://cavwins.com/music/img/cwsound_meg_hov.png';

	}

	if(numb = 'sound2_4')

	{

		document.images[cwsean].src = 'http://cavwins.com/music/img/cwsound_sean_hov.png';

	}



}

function nav(numb)

{

	document.getElementById('medianav1').style.display="none";

	document.getElementById('medianav2').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function mediaText(numb)

{

	document.getElementById('mc1').style.display="none";

	document.getElementById('mc2').style.display="none";

	document.getElementById('mc3').style.display="none";

	document.getElementById('mc4').style.display="none";

	document.getElementById('mc5').style.display="none";

	document.getElementById('mc6').style.display="none";

	document.getElementById('mc7').style.display="none";

	document.getElementById('mc8').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function showY(numb)

{

	document.getElementById('w1_1').style.display="none";

	document.getElementById('w1_2').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function showYY(numb)

{

	document.getElementById('w3_1').style.display="none";

	document.getElementById('w3_2').style.display="none";

	document.getElementById('w3_3').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function showYYY(numb)

{

	document.getElementById('w2_1').style.display="none";

	document.getElementById('w2_2').style.display="none";

	document.getElementById('w2_3').style.display="none";

	var bioshow = document.getElementById(numb);

	bioshow.style.display="block";

}

function embed(numb)

{

	if (numb == 'dion')

	{

		document.getElementById('embed').innerHTML = '<object width="270" height="220"><param name="movie" value="http://www.youtube.com/v/OMNwRmOBw7U&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OMNwRmOBw7U&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="270" height="220"></embed></object>'

	}

	if (numb == 'breakingT')

	{

		document.getElementById('embed').innerHTML = '<object width="270" height="220"><param name="movie" value="http://www.youtube.com/v/yaQip3ZUH5M?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yaQip3ZUH5M?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="270" height="220"></embed></object>'

	}

	if (numb == 'knittingF')

	{

		document.getElementById('embed').innerHTML = '<iframe src="http://player.vimeo.com/video/12716668" width="279" height="157" frameborder="0"></iframe><p><a href="http://vimeo.com/12716668">Cavalier - Caviat (Live)</a> from <a href="http://vimeo.com/rexarrowfilms">Ian Rex Arrow Wolfson</a> on <a href="http://vimeo.com">Vimeo</a>.</p>'

	}

if (numb == 'brooklynB')

	{

		document.getElementById('embed').innerHTML = '<object width="270" height="220"><param name="movie" value="http://www.youtube.com/v/jg93MkAN1lo?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jg93MkAN1lo?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="270" height="220"></embed></object>'

	}

}

function changeImg(cImg, srcc)

{

	document.images[cImg].src = srcc;

}

function moff ()

{

	document.getElementById('plays').innerHTML="";

	document.getElementById('playss').innerHTML="";

	document.getElementById('off').style.display="none";

	document.getElementById('on').style.display="block";

}

function mon ()

{

	document.getElementById('plays').innerHTML="";

	document.getElementById('on').style.display="none";

	document.getElementById('off').style.display="block";

}

function showshirt(numb)

{

	if (numb == 'chief')

	{

		document.getElementById('fullview').innerHTML = '<img src="http://cavwins.com/music/img/cwgear_chief_main.jpg" border="0"><br /><img src="http://cavwins.com/music/img/cwgear_chief_main2.png" border="0"><br/><div style="padding:0px 5px 0px 5px;"><div style="float:left;padding:0px 5px 0px 5px;"><img src="http://cavwins.com/music/img/cwgear_chief_tee.jpg" border="0"></div><em>"Who\'s the chief?"</em> an inquiring officer once asked someone while they descretely held their one hitter from his view.  This signature piece evokes an iconic allure to highlight the <em>chiefly</em> attitude.  For more info click <a href="javascript:void(0);" onClick="emailer();">here</a>.</div>';

	}

	if (numb == 'cops')

	{

		document.getElementById('fullview').innerHTML = '<img src="http://cavwins.com/music/img/cwgear_cops_main.jpg" border="0"><br/><div style="padding:15px 5px 0px 5px;"><div style="float:right;padding:0px 5px 0px 5px;"><img src="http://cavwins.com/music/img/cwgear_cop_tee.png" border="0"></div>If you are familiar with this NYPD ad campaign then you are aware of the rewards offered for info on cops shot.  Not much reward seems to make its way to those shot by cops.  See life with truth subtitles.  For more info on this TME rendition of the Cop Shot campaign click <a href="javascript:void(0);" onClick="emailer();">here</a>.</div>';

	}

	 if (numb == 'fumez')

	{

		document.getElementById('fullview').innerHTML = '<img src="http://cavwins.com/music/img/cwgear_fumez_main.jpg" border="0"><br/><div style="padding:10px 5px 0px 5px;"><div style="float:left;padding:0px 5px 0px 5px;"><img src="http://cavwins.com/music/img/cwgear_fumez_thmb.jpg" border="0"></div>Chief say papers be the safe way to go.  Stay tuned for chiefly literature on the matter.  An homage to the classic designs of rolling papers around the world, <b><em>Fumez Le Chef</b></em> is the slogan for a chief inspired brand of roll ups. "The Brand Most Preferred in Brooklyn". Click <a href="javascript:void(0);" onClick="emailer();">here</a> for more info.</div>';

	}

	if (numb == 'mast')

	{

		document.getElementById('fullview').innerHTML = '<img src="http://cavwins.com/music/img/cwgear_mast_main.jpg" border="0"><br/><div style="padding:10px 5px 0px 5px;"><div style="float:left;padding:0px 5px 0px 5px;"><img src="http://cavwins.com/music/img/cwgear_master_tee.jpg" border="0"></div>The words Dutch and Masters should never go together again without stating the obvious.  Chief has no masters dude.  This revealing take on the hood\'s staple way to get lifted is truth propoganda at its finest; <em><b>Chief style</b></em>.  For more info click <a href="javascript:void(0);" onClick="emailer();">here</a>.</div>';

	} 

	if (numb == 'con')

	{

		document.getElementById('fullview').innerHTML = '<img src="http://cavwins.com/music/img/cwgear_con_main.jpg" border="0"><br/><div style="padding:15px 5px 0px 5px;"><div style="float:right;padding:0px 5px 0px 5px;"><img src="http://cavwins.com/music/img/cwgear_conev_tee.png" border="0"></div>Con Everyone.  Nuff said.  Who <em>really</em> has the power in this town anyway? Chief says you do.  For more info on this TME take on NYC\'s power monopoly click <a href="javascript:void(0);" onClick="emailer();">here</a>.</div>';

	}



}

function emailer()

{

	document.getElementById('who').innerHTML = "";

	document.getElementById('fade').style.display = "block";

	document.getElementById('light').style.display = "block";

	document.getElementById('mail').style.display = "block";	

}

function sightview()

{

	document.getElementById('fade').style.display = "block";				document.getElementById('simplegallery1').style.display = "block";

	document.getElementById('simplegallery').style.display = "block";

}

function nosightview()

{

	document.getElementById('fade').style.display = "none";						document.getElementById('simplegallery1').style.display = "none";

	document.getElementById('simplegallery').style.display = "none";

}

function contact() 

{

	var poststr = "submit" + encodeURI( document.getElementById("submit").value ) + "&email=" + encodeURI( document.getElementById("email").value ) + "&name=" + encodeURI( document.getElementById("name").value ) + "&subject=" + encodeURI( document.getElementById("subject").value ) + "&comments=" + encodeURI( document.getElementById("comments").value );

	makerequest('contact.php', 'who', poststr);

	document.getElementById('mail').style.display = "none";

}

function noemailer()

{

	document.getElementById('fade').style.display = "none";

	document.getElementById('light').style.display = "none";

	

}



function starter()

{

	ajaxFunction('init.html', 'rightcol');

	

}