// JavaScript Document

//********************************************************************
// prima
//
// changes the photos at the top
//********************************************************************

var prima = "<td height=\"318\" width=\"556\" align=\"left\" valign=\"bottom\"";
var primamid = " style=\"background:url(";
var primaend = ") no-repeat right;\">";
var primaimages = new Array();
primaimages[0] = "graphics/mainphoto1.jpg";
primaimages[1] = "graphics/mainphoto2.jpg";
primaimages[2] = "graphics/mainphoto3.jpg";
primaimages[3] = "graphics/mainphoto4.jpg";
primaimages[4] = "graphics/mainphoto5.jpg";

var rannum_one = Math.floor(Math.random() * primaimages.length)


var doua = "<a href=\"portfolio.php#Web\"><img " ;
var douaimages = new Array();
douaimages[0] = "src=\"graphics/work/show_gcb.jpg\" width=\"110\" height=\"110\" border=\"0\" align=\"left\" style=\"padding-right: 10px;\" /></a><div class=\"news_title\" style=\"margin-bottom: 5px;\">Cincinnati Behavioral Health Services</div>New website design &amp; development using existing logo. E-commerce and Site Content Management &amp; Administration.";
douaimages[1] = "src=\"graphics/work/show_cc.jpg\" width=\"110\" height=\"110\" border=\"0\" align=\"left\" style=\"padding-right: 10px;\" /></a><div class=\"news_title\" style=\"margin-bottom: 5px;\">Congruity Career Consulting</div>New website design &amp; development using existing logo. E-commerce and Site Content Administration. Audio & Video Web Flash Development.";


var rannum_two = Math.floor(Math.random() * douaimages.length)


/* Email this page to a friend */


function mailpage()
{
mail_str = "mailto:?cc=info@catcreatives.com&Subject=Cat%20Creatives%20Website%20Link%20and%20Info";
mail_str += "&body=I thought you might be interested in this information that I found on the Cat Creatives Website";
mail_str += ". Here is the link: " + location.href;
location.href = mail_str;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


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];}}
}



/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}


/***********************************************
* Show - Hide Layers Script *
***********************************************/

menu_status = new Array();	
	
function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}


function hideHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}
