
//global_navigation image preload START

vimgname = new Array();
vloadimg = new Array();
for(i=0; i<vimgname.length; i++){
	vloadimg[i] = new Image();
	vloadimg[i].src = '/avc/lumix/common/img/' + vimgname[i];
}

function chGnaviImg(imgID, imgSRC) {
	document.images[imgID].src = imgSRC;
}

//global_navigation image preload END



function FSWinOpen(theURL,winName,features) {

	winW = window.screen.width;
	winH = window.screen.height;
	if((winW > 1024) || (winH > 768)){
		features = features + ',width=950,height=768';
	}else{
		features = features + ',width=' + winW + ',height=' + winH;
	}
	window.open(theURL,winName,features);
}



function  openWdWindow(theURL){
	window.open(theURL,'word','scrollbars=yes,resizable=yes,width=600,height=500');
}



function FSOpen(FSurl,FSwinName){
	winH = screen.availHeight;
	winW = screen.availWidth;
	window.open(FSurl,FSwinName,"height="+winH+",width="+winW+",top=0,left=0,status=no,resizable=yes");
}

function FSOpen2(FSurl,FSwinName){
	winH = screen.availHeight;
	winW = screen.availWidth;
	window.open(FSurl,FSwinName,"height="+winH+",width="+winW+",top=0,left=0,status=yes,resizable=yes");
}

function open360Win(Url360, Name360, W360, H360){
	Features360 = 'scrollbars=no,resizable=no,width=' + W360 + ',height=' + H360;
	window.open(Url360, Name360, Features360);
}

function cfWinOpen(cfAnchor, cfFile) {

	setAnchor = cfAnchor;
	var cfDir = '/avc/lumix/popup/';
	var wopenStatus = "status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=550,height=580";
	if(navigator.userAgent.indexOf("Netscape6") == 1){
		cfwin = window.open(cfDir + cfFile,'cf',wopenStatus);
	}else{
		cfwin = window.open(cfDir + cfFile + cfAnchor,'cf',wopenStatus);
	}
	cfwin.focus();
	cfwin.moveTo(screen.availWidth-560, 0);
}

function sbWinOpen(sburl, sbtarget) {

	var sbopenStatus = "status=yes,menubar=no,scrollbars=no,resizable=yes,width=860,height=700";
	sbwin = window.open(sburl,sbtarget,sbopenStatus);
	sbwin.focus();
	sbwin.moveTo(screen.availWidth-860, 0);

}

function iic3mOpen(iic3url,iic3Name){
	window.open(iic3url,iic3Name,"status=yes,menubar=no,scrollbars=no,resizable=yes,width=500,height=375");
}

function iabpOpen(iaurl,iaName){
	window.open(iaurl,iaName,"status=yes,menubar=no,scrollbars=yes,resizable=yes,width=780,height=646,left=0,top=0");
}

function iatrOpen(iaurl,iaName){
	window.open(iaurl,iaName,"status=yes,menubar=no,scrollbars=no,resizable=yes,width=1004,height=639,left=0,top=0");
}


function iamovOpen(iamovurl,iamovName){
	window.open(iamovurl,iamovName,"status=yes,menubar=no,scrollbars=yes,resizable=yes,width=610,height=400");
}

function widemovOpen(widemovurl,iamovName){
	window.open(widemovurl,iamovName,"status=yes,menubar=no,scrollbars=yes,resizable=yes,width=610,height=400");
}

function wifimovOpen(wifimovurl,wifimovName){
	window.open(wifimovurl,wifimovName,"status=yes,menubar=no,scrollbars=yes,resizable=yes,width=610,height=400");
}

function fx500movOpen(fx500movurl,fx500movName){
	window.open(fx500movurl,fx500movName,"status=yes,menubar=no,scrollbars=yes,resizable=yes,width=700,height=570");
}

function gh1movOpen(gh1movurl,gh1movName){
	window.open(gh1movurl,gh1movName,"status=yes,menubar=no,scrollbars=no,resizable=yes,width=500,height=375");
}

function openGlobalLinks(theURL){
	window.open(theURL,'links','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=480');
}

function lx5sampleOpen(lx5sampleurl,lx5sampleName){
	window.open(lx5sampleurl,lx5sampleName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1008,height=782");
}

function glensesaccessoriesOpen(glensesaccessoriesurl,glensesaccessoriesName){
	window.open(glensesaccessoriesurl,glensesaccessoriesName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=750");
}

function gh2galleryOpen(gh2galleryurl,gh2galleryName){
	window.open(gh2galleryurl,gh2galleryName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1008,height=714");
}

function fz100galleryOpen(fz100galleryurl,fz100galleryName){
	window.open(fz100galleryurl,fz100galleryName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=690");
}

function tsfijigalleryOpen(tsfijigalleryurl,tsfijigalleryName){
	window.open(tsfijigalleryurl,tsfijigalleryName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1008,height=723");
}

function lx5charlieOpen(lx5charlieurl,lx5charlieName){
	window.open(lx5charlieurl,lx5charlieName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=620");
}

function ts3ericbergerOpen(ts3ericbergerurl,ts3ericbergerName){
	window.open(ts3ericbergerurl,ts3ericbergerName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=725");
}

function philosophyGmsOpen(PhilosophyGmsurl,PhilosophyGmsName){
	window.open(PhilosophyGmsurl,PhilosophyGmsName,"status=no,menubar=no,scrollbars=no,resizable=no,width=960,height=648");
}

function gh2BenceGalleryOpen(gh2BenceGalleryurl,gh2BenceGalleryName){
	window.open(gh2BenceGalleryurl,gh2BenceGalleryName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=700");
}

function ts3aquariumOpen(ts3aquariumurl,ts3aquariumName){
	window.open(ts3aquariumurl,ts3aquariumName,"status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=700");
}

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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var matag = 'mailto:';
var ma = 'Email &ndash; PR' + '@' + 'cjcstrategists.com';

function mtoPlus(){
	document.getElementById("mto").setAttribute("href",matag + "PR%40cjcstrategists%2ecom");
}

