$(document).ready(function(){
	$("div#content").fadeIn(4000);
});
function menuTop( page ){
	document.write("<div id='logoTop'><img src='images/splash/JCS logo 2.gif' width='750' height='130' alt=' James Carter Studio ' /></div>");
/* ---------------------------------
	document.write("<div id='logoTop'><img src='images/splash/JCS logo 4.gif' width='750' height='130' alt=' James Carter Studio & School of Jewelry Arts' /></div>");
	----------------------------------- */
	document.write("<table border='0' cellspacing='0' cellpadding='0'  id='menuTop'><tr>");
	document.write("<td class='mitem' id='m_home'><a href='index.html'>Home</a></td>");
	document.write("<td class='mitem' id='m_classes'><a href='classes.html'>Classes</a></td>");
	document.write("<td class='mitem' id='m_profile'><a href='profile.html'>Artist Profile</a></td>");
	document.write("<td class='mitem' id='m_photogallery'><a href='photogallery.html'>Photo Gallery</a></td>");
	document.write("<td class='mitem' id='m_video'><a href='video.html'>Video</a></td>");
	document.write("<td class='mitem' id='m_contact'><a href='contact.html'>Contact Us</a></td>");
	document.write("</tr></table>");
	var m = document.getElementById(page).className='selected';
}
function pageBottom( page ){
	document.write("<div id='homeBottom'>");
	document.write("<div id='homeBottomRule'></div>");

	document.write("<div id='homeBottomWords'><div style='text-align:center;font-size:11pt;color:rgb(255,255,124);font-weight:normal;margin-bottom:6px'>James Carter Studio & School of Jewelry Arts</div>Located on the Emerald Coast of Florida, we are a studio and school dedicated to teaching traditional metalsmithing, jewelry techniques, and Cloisonné Enamel. Classes emphasize craftsmanship and individual student development. Learn more by browsing through our Web site.</div>");


	// 2-24-2010 document.write("<div id='homeBottomWords'>We are a studio and school dedicated to teaching traditional metalsmithing, jewelry techniques, and Cloisonné Enamel. Classes emphasize craftsmanship and individual student development. Learn more by browsing through our Web site.</div>");
	document.write("</div>");
	document.write("<div style='display:none' id='logoPrint'>James Carter Studio<br />"+street+"<br />"+citystatezip+"<br />"+phone+"<br /><span style='text-decoration:underline'>"+email+"</span></div>");
	if( page && page == 'm_home' ){
		document.write("<div id='developer'>Site developed and supported by <a href='http://www.webPoynor.com' target='_blank'>webPoynor.com</a> of Colorado<br />Photos compliments of Ray Lackaye Photography</div>");
	}else{
		document.write("<div id='developer'>Site developed and supported by <a href='http://www.webPoynor.com' target='_blank'>webPoynor.com</a> of Colorado</div>");
	}

}
function pageBottomContact( ){
	document.write("<div id='homeBottomContact'>");
	document.write("<div id='homeBottomRule'></div>");
		document.write("<div id='homeBottomWords'><div style='text-align:center;font-size:11pt;color:rgb(255,255,124);font-weight:normal;margin-bottom:6px'>James Carter Studio & School of Jewelry Arts</div>Located on the Emerald Coast of Florida, we are a studio and school dedicated to teaching traditional metalsmithing, jewelry techniques, and Cloisonné Enamel. Classes emphasize craftsmanship and individual student development. Learn more by browsing through our Web site.</div>");
	//document.write("<div id='homeBottomWords'>We are a studio and school dedicated to teaching traditional metalsmithing, jewelry techniques, and Cloisonné Enamel. Classes emphasize craftsmanship and individual student development. Learn more by browsing through our Web site.</div>");
	document.write("</div>");
	document.write("<div style='position:relative;top:-110px;left:192px'><a href='http://www.facebook.com/pages/James-Carter-Studio/64287444453' title='James Carter Studio' target='_TOP' style='font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;'>James Carter Studio</a><span style='font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; line-height: 16px; font-variant: normal; font-style: normal; font-weight: normal; color: #555555; text-decoration: none;'>&nbsp;|&nbsp;</span><a href='http://www.facebook.com/business/dashboard/' title='Make your own badge!' target='_TOP' style='font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;'>Promote Your Page Too</a><br/><a href='http://www.facebook.com/pages/James-Carter-Studio/64287444453' title='James Carter Studio' target='_TOP'><img src='http://badge.facebook.com/badge/64287444453.3040.1138256242.png' width='360' height='60' style='border: 0px;' /></a></div>");
	document.write("<div style='display:none' id='logoPrint'>James Carter Studio<br />"+street+"<br />"+citystatezip+"<br />"+phone+"<br /><span style='text-decoration:underline'>"+email+"</span></div>");
	document.write("<div id='developerContactContactUs'>Site developed and supported by <a href='http://www.webPoynor.com' target='_blank'>webPoynor.com</a> of Colorado</div>");
}
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
function menuTopOriginal( page ){

document.write("<table border='0' cellspacing='0' cellpadding='0' class='menuTop'><tr>");
document.write("<td class='mitem' id='m_home'><a href='index.html'>Home</a></td>");
document.write("<td class='mitem' id='m_workshops'><a href='workshops.html'>Workshops</a></td>");
document.write("<td class='mitem' id='m_collections'><a href='collections.html'>Collections</a></td>");
document.write("<td class='mitem' id='m_purchasing'><a href='purchasing.html'>Purchasing</a></td>");
document.write("<td class='mitem' id='m_about'><a href='about.html'>About</a></td>");
document.write("<td class='mitem' id='m_statement'><a href='statement.html'>Artist's Statement</a></td>");
document.write("<td class='mitem' id='m_materials'><a href='materials.html'>Materials & Processes</a></td>");
document.write("<td class='mitem' id='m_care'><a href='care.html'>Care</a></td>");
document.write("</tr></table>");

	var ms = getElementsByAttribute("class", "mitem");
	for( var i=0;i<ms.length;i++) {
		ms[i].style.backgroundColor='transparent';
		//ms[i].style.borderStyle='none';
		//ms[i].style.borderColor='transparent';
	}
	var m = document.getElementById(page);
	m.style.backgroundColor = "rgb(251,251,251)";
	m.style.border= "1px solid rgb(200,200,200)";
	//m.style.borderColor = "rgb(200,200,200)";
	//m.style.borderStyle='solid';

}
function address(){

	document.write("<div id='address'><h4>Contact Us</h4><div>");
	document.write("<a href='mailto:" + email + "&subject=James Carter Studio jewelry'>"+email+"</a><br /><br />");
	document.write(phone+" <span style='font-size:10pt'>(voice)</span><br />");
	document.write(fax + " <span style='font-size:10pt'>(fax)</span><br /><br />");
	document.write("<strong>James Carter Studio</strong><br />");
	document.write(street + "<br />");
	document.write(citystatezip + "<br />");
	document.write("<a target='_blank' href='http://maps.google.com/maps?q=2616+N+12th+Ave,+Pensacola,+FL+32503,+USA&sa=X&oi=map&ct=image'>Google map to us</a><br />");
	document.write("</div></div id='address'>");

}
function footer(){

document.write("<table border='0' cellspacing='0' cellpadding='0' id='contactUs'><tr>");
document.write("<td><strong>"+phone+" </strong> (voice)</td><td><strong>"+fax+" </strong> (fax)<td><strong><a href='mailto:" + email + "'>"+email+"</a></strong><td><strong>"+street+"</strong>, <strong>"+citystatezip+"</strong></td></tr></table>");

}
function wopen( obj ){
	try{
		var path160 = obj.src;
		var path640 = path160.replace("/160/","/640/");
		if( path640.indexOf("hands") > -1 || obj.className.indexOf("160x120") > -1 ){
			var dims='width=660,height=500';
		}else{
			var dims='width=500,height=660';
		}
		window.open( path640, '', dims+',scrollbars=no,resizable=yes,status=yes,toolbar=no,menubar=no,location=no');
	}
	catch(err){
		txt="There was an error on this page.\n\n";
		txt+="Error description: " + err.description + "\n\n";
		txt+="Click OK to continue.\n\n";
		alert(txt);
	}
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function fadingListPacked(){
	// used by any iframe set up for fading slide show
	// first arg is the folder and optionally the first part of the image file name
	// the next N args are the image file names or right-most part of file names
	// example call: fadingList('images/img_','01.jpg','02.jpg','03.jpg')
	// return: "images/img_01.jpg~images/img_02.jpg~images/img_03.jpg"
	//
	var qs = "";
	var prepend = arguments[0];
	for( i=1;i<arguments.length;i++){
		qs += prepend + arguments[i] + "~";
	}
	return qs;
}
function fadingList(){
	// used by any iframe set up for fading slide show
	// first arg is the folder and optionally the first part of the image file name
	// the next N args are the image file names or right-most part of file names
	// example call: fadingList('images/img_','01.jpg','02.jpg','03.jpg')
	// return: "qs[]=images/img_01.jpg&qs[]=images/img_02.jpg&qs[]=images/img_03.jpg"
	//
	var qs = "";
	var prepend = arguments[0];
	for( i=1;i<arguments.length;i++){
		qs += "qs[]=" + prepend + arguments[i] + "&";
	}
	return qs;
}
function currency(val) {
// returns the val in the 1,890.99 format
// thanks to irt.org
    var t = val + "";
    val = t.replace(",","");
    val -= 0;
    val = (Math.round(val*100))/100;
    val = (val == Math.floor(val)) ? val + '.00' : (  (val*10 == Math.floor(val*10)) ? val + '0' : val);
    var vals = val + "";
    L = vals.length
    if( L >= 7 ){
        return left(vals,L-6)+ ","+ right(vals,6)
    }else{
        return val
    }
}
function wiggle(obj){
	obj.style.position = 'relative'
	obj.style.top = '-2px'
	obj.style.left = '-2px'
}
function unWiggle(obj){
	obj.style.position = 'relative'
	obj.style.top = '0px'
	obj.style.left = '0px'
}

function mid(string, loc, many){
	    var l = string.length
	    if(l<=0 || loc<0|| many<=0) return string;
	    return string.substr(loc,many)
}
function len(obj){
		return obj.length
}
function trim(str){
    var x="", y="";
    for (var i=0; i<str.length; i++){
    	y=str.substring(i,i+1);
    	if( y!=" " && y!="\n" && y!="\t" ){x = x + y}
	}
    return x
}
function rtrim(str){
	var x=""
	for (var i=str.length-1; i >-1; i--){
		var x = str.charAt(i)
		//alert(i+"="+x)
		if( x!=" " && x!="\n" && x!="\t" ) return str.substr(0,i+1)
	}
	return ""
}
function ltrim(str){
    for (var i = 0; i < str.length; i++){
		var x = str.charAt(i)
		//alert(i+"="+x)
		if( x!=" " && x!="\n" && x!="\t" ) return str.substr(i)
    }
return ""
}
function right(string, many){
    var l = string.length
    if(l<=0 || many<=0) return string;
    return string.substr(l-many)
}
function left(string, many){
    var l = string.length
    if(l<=0 || many<=0) return string;
    return string.substr(0,many)
}
function minimum(a,b){
		if(a<b){return a}else{return b}
}
function maximum(a,b){
		if(a<b){return b}else{return a}
}
