/**
 
 Classic Charms / Classic Earrings Lightbox2 Wrapper v2.1
 Last Revised: June 3, 2008
 
 **/

//var CcCeLb2_gBaseURL = "http://site.classic-charms.com/imgs/lightbox2/";
//var CcCeLb2_gWhichSite = 1; /** 0 for Classic Charms; 1 for Classic Earrings **/
//var CcCeLb2_gAlreadyDone = false;

function CcCeLb2_badDomSupport() {
	
	if (navigator.userAgent.toLowerCase().indexOf("opera")!=(-1)) { return true; }
	if (navigator.userAgent.toLowerCase().indexOf("webkit")!=(-1)) { return true; }
	if (navigator.userAgent.toLowerCase().indexOf("msie")!=(-1)) { return true; }
	return false;
	
}

function CcCeLb2_includeScript(CcCeLb2_url) {

	if (CcCeLb2_badDomSupport()==true) { document.write("<scr"+"ipt language='javascript' type='text/javascript' src='"+CcCeLb2_url+"'></scr"+"ipt>"); return; }
	var CcCeLb2_scriptObj = document.createElement("script");
	CcCeLb2_scriptObj.language = "javascript";
	CcCeLb2_scriptObj.type = "text/javascript";
	CcCeLb2_scriptObj.src = CcCeLb2_url;
	document.getElementsByTagName("head").item(0).appendChild(CcCeLb2_scriptObj);

}

function CcCeLb2_includeStylesheet(CcCeLb2_url) {

	if (CcCeLb2_badDomSupport()==true) { document.write("<lin"+"k rel='stylesheet' type='text/css' href='"+CcCeLb2_url+"'/>"); return; }
	var CcCeLb2_styleObj = document.createElement("link");
	CcCeLb2_styleObj.rel = "stylesheet";
	CcCeLb2_styleObj.type = "text/css";
	CcCeLb2_styleObj.media = "screen";
	CcCeLb2_styleObj.href = CcCeLb2_url;
	document.getElementsByTagName("head").item(0).appendChild(CcCeLb2_styleObj);
	
}

function CcCeLb2_init() {

	//if (CcCeLb2_gAlreadyDone==true) { return; }
	//if (!document.getElementById) { return; }
	//if (!document.createElement) { return; }
	//var CcCeLb2_cteContainer = null;
	//if (CcCeLb2_gWhichSite==1) { CcCeLb2_cteContainer = document.getElementById("itemarea"); }
	//else { CcCeLb2_cteContainer = document.getElementById("cteContainer"); }
	//if ((!CcCeLb2_cteContainer)||(CcCeLb2_cteContainer==null)) { return; }
	//if (CcCeLb2_cteContainer.childNodes.item(0).nodeName.toLowerCase()!="a") { return; }
	//var CcCeLb2_imageLink = CcCeLb2_cteContainer.childNodes.item(0);
	//var CcCeLb2_image = CcCeLb2_imageLink.getElementsByTagName("img").item(0);
	//CcCeLb2_imageLink.rel = "lightbox";
	//CcCeLb2_imageLink.title = CcCeLb2_image.alt;
	//CcCeLb2_includeStylesheet(CcCeLb2_gBaseURL + "css/lightbox.css")
	//CcCeLb2_includeScript(CcCeLb2_gBaseURL + "js/prototype.js");
	//CcCeLb2_includeScript(CcCeLb2_gBaseURL + "js/scriptaculous.js?load=effects,builder");
	//CcCeLb2_includeScript(CcCeLb2_gBaseURL + "js/lightbox.js");
	//CcCeLb2_gAlreadyDone = true;
	
}

//CcCeLb2_init();