/* Navigation menus
Paste the JavaScript file reference below inside a valid HTML tag within the body (<BODY></BODY>).
The menu will position itself as a block level element at the point of insertion, similar to a table or div.
<script language="javascript" src="js/quickmenu.js" type="text/javascript"></script>
*/
function writeMenu1() {
document.write('<div id=\"qm0\" class=\"qmmc\">');
document.write('<a href=\"javascript:void(0)\">What We Do<\/a>');
document.write('<div>'
+ '<a href=\"consulting.htm\">Consulting<\/a>'
+ '<a href=\"design-and-marketing.htm\">Design \&amp\; Marketing<\/a>'
+ '<a href=\"public-relations.htm\">Public Relations<\/a>'
+ '<a href=\"training-and-seminars.htm\">Training \&amp\; Seminars<\/a>'
+ '<\/div>');
document.write('<a href=\"clients.htm\">Clients<\/a>');
document.write('<div style=\"display:none\;\"><\/div>');
document.write('<a href=\"results.htm\">Results<\/a>');
document.write('<div style=\"display:none\;\"><\/div>');
document.write('<a href=\"about-us.htm\">About Us<\/a>');
document.write('<div style=\"display:none\;\"><\/div>');
document.write('<span class=\"qmclear\">\&nbsp\;<\/span>');
document.write('<\/div>');
}

function writeMenu2() {
document.write('<div id=\"qm0\" class=\"qmmc\">');
document.write('<a href=\"javascript:void(0)\">What We Do<\/a>');
document.write('<div>'
+ '<a href=\"consulting.htm\">Consulting<\/a>'
+ '<a href=\"design-and-marketing.htm\">Design \&amp\; Marketing<\/a>'
+ '<a href=\"public-relations.htm\">Public Relations<\/a>'
+ '<a href=\"training-and-seminars.htm\">Training \&amp\; Seminars<\/a>'
+ '<\/div>');
document.write('<a href=\"clients.htm\">Clients<\/a>');
document.write('<div>'
+ '<a href=\"case1.htm\">Pinnacle Entertainment<\/a>'
+ '<a href=\"case2.htm\">The History Channel<\/a>'
+ '<a href=\"case3.htm\">Royal Bath Products<\/a>'
+ '<a href=\"case4.htm\">Pepaj Restaurants<\/a>'
+ '<a href=\"case5.htm\">Jameson Inn \/ Kitchin Hospitality<\/a>'
+ '<a href=\"case6.htm\">Vacation Planning Party<\/a>'
+ '<a href=\"case7.htm\">YANF \/ Vandamere Press<\/a>'
+ '<a href=\"case8.htm\">The Smithsonian Associates<\/a>'
+ '<a href=\"case9.htm\">Agent@Home<\/a>'
+ '<a href=\"case10.htm\">Logix Resource Group<\/a>'
+ '<a href=\"case11.htm\">Collette Vacations<\/a>'
+ '<a href=\"case12.htm\">Corporate Identities and Logos<\/a>'
+ '<\/div>');
document.write('<a href=\"results.htm\">Results<\/a>');
document.write('<div style=\"display:none\;\"><\/div>');
document.write('<a href=\"about-us.htm\">About Us<\/a>');
document.write('<div style=\"display:none\;\"><\/div>');
document.write('<span class=\"qmclear\">\&nbsp\;<\/span>');
document.write('<\/div>');
}

/*Create Menu Settings:
(
Menu ID,
Is Vertical,
Show Timer,
Hide Timer,
On Click (options: 'all' * 'all-always-open' * 'main' * 'lev2'),
Right to Left,
Horizontal Subs,
Flush Left,
Flush Top
)
=> Place this before closing </body> tag: <script type="text/javascript">qm_create(0,false,0,500,false,false,false,false,false);</script>
*/
function create_qm_settings() {
qm_create(0,false,0,500,false,false,false,false,false);
}

// Copyright
var now = new Date();
function fourdigits(number)	{
return (number < 1000) ? number + 1900 : number;}
var year = (fourdigits(now.getYear()));

var copyRight='<p align="right" class="cpyrght">'
+ '&copy;&nbsp;'
+ year
+ ' Creative Solutions, Inc. All rights reserved.'
// Begin W3C Markup Validator. Comment out or remove before going live.
//+ '<br />'
//+ '<a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">'
//+ 'Valid'
//+ '<abbr title="eXtensible HyperText Markup Language">'
//+ ' XHTML'
//+ '</abbr>'
//+ '</a>'
// End W3C Markup Validator. Comment out or remove before going live.
+ '</p>';

// Write copyright
$(document).ready(function(){
$("#footerR").html(copyRight);
});

// Status bar: <body onLoad="statusLoad()">
function statusLoad() {
window.status="CSI Creative Solutions"; return true;
}

window.defaultStatus="CSI Creative Solutions";

// Individual case studies: Previous & Next navigation
function csNav(n) {
var thisCase = n;
var lastCase = 12;
var nextCase;
var prevCase;
if (thisCase==lastCase) nextCase = 1;
else {nextCase = thisCase + 1};
if (thisCase==1) prevCase = lastCase;
else {prevCase = thisCase - 1};
document.write('<ul>'); 
document.write('<li class=\"prev\"><a href=\"case'
+ prevCase
+ '.htm\"><img src=\"img\/prevarrow_ed1c24.gif\" alt=\"Previous\" \/><\/a><a class=\"caseLink\" href=\"case'
+ prevCase
+ '.htm\"><span>Previous<\/span><\/a><\/li>');
document.write('<li class=\"next\"><a class=\"caseLink\" href=\"case'
+ nextCase
+ '.htm\"><span>Next<\/span><\/a><a href=\"case'
+ nextCase
+ '.htm\"><img src=\"img\/nextarrow_ed1c24.gif\" alt=\"Next\" \/><\/a><\/li>');
document.write('<\/ul>'); 
}

// Contact information
var contact1='<a href="mailto:INFO@CSICreativeSolutions.com">INFO@CSICreativeSolutions.com</a><br />'
+ 'Phone (Toll free): <b>877 843 8877</b><br />'
+ 'Fax: 404 892 3990';

var location1='<strong><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=757+Hillpine+Terrace+NE+atlanta+ga+30306&sll=33.794092,-84.358521&sspn=0.012821,0.027874&ie=UTF8&z=17&iwloc=A" target="_blank">Atlanta, Georgia</a></strong>'
+ '757 Hillpine Terrace NE<br />'
+ 'Atlanta, GA 30306';

var location2='<strong><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=110+Whaler+Drive,+Suite+303+Melbourne+Beach,+FL+32951&sll=33.79386,-84.362093&sspn=0.006411,0.013937&ie=UTF8&z=17&iwloc=A" target="_blank">Melbourne Beach, Florida</a></strong>'
+ '110 Whaler Drive, Suite 303<br />'
+ 'Melbourne Beach, FL 32951';

// Write contact information
$(document).ready(function(){
$("#contactInfo1").html(contact1);
});

$(document).ready(function(){
$("#locationInfo1").html(location1);
});

$(document).ready(function(){
$("#locationInfo2").html(location2);
});

// Show contact information
function showContactInfo2(c) {
$(c).show('clip',300);
scrollTo(0,9999);
return true;
}

function showContactInfo1(a,b) {
$(a).hide('fold',300);
setTimeout("showContactInfo2('" + b + "')",300);
return true;
}

$(document).ready(function(){
$("#footerL").click(function () {
showContactInfo1(this,"#contact");
return true;
});
});

// Hide contact information
function HideContactInfo2(f) {
$(f).show('clip',300);
return true;
}

function HideContactInfo1(d,e) {
$(d).hide('fold',300);
setTimeout("HideContactInfo2('" + e + "')",300);
return true;
}

$(document).ready(function(){
$("#contact h1").click(function () {
HideContactInfo1("#contact","#footerL");
return true;
});
});