// JavaScript Document
// by Alfi Rizka T (avikaco@gmail.com)


	var aboutWidth			= 610;
	var aboutHeight			= 730;
	var availableWidth		= 610;
	var availableHeight		= 450;
	var recruitmentWidth	= 551;
	var recruitmentHeight	= 580;
	var memberWidth			= 551;
	var memberHeight		= 630;
	var newsletterWidth		= 700;
	var newsletterHeight	= 750;
	var contactWidth		= 650;
	var contactHeight		= 700;
	var sponsorWidth		= 600;
	var sponsorHeight		= 700;
	var archiveWidth		= 410;
	var archiveHeight		= 345;


	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_changeProp(objName,x,theProp,theValue) { //v6.0
  	var obj = MM_findObj(objName);
  	if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function openPopUp (url,winName, winWidth, winHeight,scrollbar,resize) {
	var posY = (screen.height - winWidth)/2;
	var posX = (screen.width - winHeight)/2;
	window.open (url, winName,'width='+winWidth+ ',height='+ winHeight +',scrollbars='+scrollbar+',resizable='+resize+', left='+posX+', top='+posY);
}



    function goTo(targeturl, headerPage) {
        if (targeturl && headerPage) {
            window.parent.frames['content'].location.href = targeturl;
            this.location.href = headerPage;
        }

        return true;
    }
	
	var menuCaption = new Array ();
	menuCaption[0] = "Recent work by VII"; 									// caption of lastest stories
	menuCaption[1] = "Current Affairs and Issues";	// Issues inthe news caption
	menuCaption[2] = "View all photo essays";								// feature stories
	menuCaption[3] = "VII Corporate";								// corporate 
	menuCaption[4] = "Portfolios & VII photographer biographies";			// photographer
	menuCaption[5] = "VII Seminars";							// Gallery				
	menuCaption[6] = "VII Collection";						// books 
	menuCaption[7] = "VII workshops, Seminar and Movie";											// workshops
	menuCaption[8] = "Search the VII archive";								// achive
	menuCaption[9] = "About VII photo agency";								// Logo VII
	menuCaption[10] = "Exhibitions Schedule";								//  exhibition
	menuCaption[11] = "VII Movie";								//  exhibition
	menuCaption[12] = "Forum, Community, Lightstalkers";								//  exhibition
	menuCaption[13] = "Recent work by VII Network";								//  exhibition
	
	function menuOver (caption_id) {
		MM_changeProp('keteranganMenu','','innerHTML',menuCaption[caption_id],'SPAN');	
	}
	
	function menuOut () {
		MM_changeProp('keteranganMenu','','innerHTML',menuCaption[default_caption_id],'SPAN');
	}